You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Guan Yu <gu...@citycab.com.sg> on 2005/07/11 04:38:16 UTC
it seems that nutch ignores url which has query string
Hi,
I'm using intranet search. There is links in my web pages like the
following: <a
href="http://www.citycab.com.sg:8003/wsf/news.jsp?id=82">News</a>. It
seems that the above link can't be found by nutch. How to solve this
problem?
Thanks,
Guan Yu
Re: it seems that nutch ignores url which has query string
Posted by Rob Pettengill <ro...@earthlink.net>.
It's probably worth reading though all the files in the conf
directory to get an idea of what the
default settings are and what adjustments can be made there.
urls with "?" in them indicate that the files are generated in
response to the passed parameters. In many cases these active pages
are not search friendly. The link may have side effects (e.g.,
placing an order) that you don't want search to trigger or it may
lead to a search "black hole" that generates an infinite number of
links (e.g., a tomorrow link in a web calendar).
That is why "?" is included in one of the default exclusion rules in
the conf/regex-urlfilter.txt file:
# skip URLs containing certain characters as probable queries, etc.
-[?*!@=]
Guan Yu,
If you totally take this out you will probably be sorry. A better
approach might be to precede
this line with exceptions that you are sure will cause no problems.
For example I know one site that adds a gratuitous "?" to the end of
every asp url (I guess they are trying to hide from potential
customers who use search engines :-). I can tell nutch that it is ok
to index "?" files from this site by adding the following line in
front of the pattern that skips "?" URLs:
#exceptions to skip rule
+search.unfriendly.site.com/.*\.asp\?$
# skip URLs containing certain characters as probable queries, etc.
-[?*!@=]
The same technique can also be used to make exceptions to the other
rules, for example to index .pdf files only from sites in a certain
domain.
--
Robert C. Pettengill, Ph.D.
rcp@stanfordalumni.org
Questions about petroleum?
Goto: http://AskAboutOil.com/
On 2005, Jul 10, at 9:38 PM, Guan Yu wrote:
> Hi,
>
> I'm using intranet search. There is links in my web pages like the
> following: <a
> href="http://www.citycab.com.sg:8003/wsf/news.jsp?id=82">News</a>. It
> seems that the above link can't be found by nutch. How to solve this
> problem?
>
> Thanks,
> Guan Yu
>
>
>
>