You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by cristina <cr...@unirioja.es> on 2008/08/14 12:46:28 UTC
Searching into specific location/directory
Hi all!
I'm newbie using nutch.
I index my web site with the command:
/APPS2/nutch-0.9/bin/nutch crawl /APPS2/nutch-0.9/urls/urls.txt -dir
/APPS2/nutch-0.9/crawl.db -depth 5 -threads 10
In my crawl-urlfilter.xml file, I have:
-^(file|ftp|mailto|https):
-\.(gif|GIF|jpg|JPG|png|PNG|ico|ICO|css|sit|eps|wmf|zip|ppt|mpg|xls|gz|rpm|tgz|mov|MOV|exe|jpeg|JPEG|bmp|BMP|js|wmv|WMV|ra|RA|ram|RAM|css)$
-[*!@]
# accept hosts in MY.DOMAIN.NAME
+^http://([a-z0-9]*\.)*(unirioja.es|otrodominio.org)/
# skip everything else
-.
If I search through the nutch web application, every thing is OK.
I use site:http://www.unirioja.es or site:http://www.otrodominio.org to
change the site to be searched (boths domains are virtual hosts in my
apache)
I'm Now I want to search only from http://www.unirioja.es/proyecto (only
search pages pending from this location) but in the serach.jsp page, If
I use in the query string url:http://www.unirioja.es/proyecto it doesn´t
work. No results are returned.
What´s wrong? Could anyone help me?
Thanks in advance!
Cristina