You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Annappa <an...@yahoo.co.in> on 2009/11/09 16:39:07 UTC
PRUNE : need some help on pruning syntax.
Hi,
I am unsing Nutch-0.9 for crawing of sime web application which has a
header part, menu part , left navigation and main contetn area.
When i do a search on a perticular key word and if that appears in the main
menu, then results are repeating as many times as pages are, bcz the menu
will be included in all the pages. So i need to restrict my search not to
search with the content of a perticular div
ex : <div class="menu"> ................ </div>.
Ho do i remove the content between a div from a search
--
View this message in context: http://old.nabble.com/PRUNE-%3A-need-some-help-on-pruning-syntax.-tp26268447p26268447.html
Sent from the Nutch - User mailing list archive at Nabble.com.
Re: PRUNE : need some help on pruning syntax.
Posted by Subhojit Roy <ma...@gmail.com>.
Hi,
What you ask for is not possible using the prune command. Prune is to remove
URLs that follow a specific patter specified by the administrator.
You will need to parse the HTML page so that the "unwanted" portions
mentioned by you i.e. <div class="menu"...> do not get included in the
CONTENT field of the index that gets created. I don't think this ability
exists in Nutch 0.9 (not even in 1.0). You will need to write your own code
for that. We did that and it works well i.e. only certain portions of the
page are included in the index.
Thanks,
-sroy
On Mon, Nov 9, 2009 at 9:09 PM, Annappa <an...@yahoo.co.in> wrote:
>
> Hi,
>
> I am unsing Nutch-0.9 for crawing of sime web application which has a
> header part, menu part , left navigation and main contetn area.
>
> When i do a search on a perticular key word and if that appears in the main
> menu, then results are repeating as many times as pages are, bcz the menu
> will be included in all the pages. So i need to restrict my search not to
> search with the content of a perticular div
>
> ex : <div class="menu"> ................ </div>.
>
>
> Ho do i remove the content between a div from a search
>
> --
> View this message in context:
> http://old.nabble.com/PRUNE-%3A-need-some-help-on-pruning-syntax.-tp26268447p26268447.html
> Sent from the Nutch - User mailing list archive at Nabble.com.
>
>
--
Subhojit Roy
Profound Technologies
(Search Solutions based on Open Source)
email: sroy@profound.in
http://www.profound.in
Re: PRUNE : need some help on pruning syntax.
Posted by Fadzi Ushewokunze <fa...@butterflycluster.net>.
one option is to extend the html parser and look for these things and
ignore them.
you might also want to look at this forum posting:
http://www.mail-archive.com/nutch-user@lucene.apache.org/msg13969.html
On Mon, 2009-11-09 at 07:39 -0800, Annappa wrote:
> Hi,
>
> I am unsing Nutch-0.9 for crawing of sime web application which has a
> header part, menu part , left navigation and main contetn area.
>
> When i do a search on a perticular key word and if that appears in the main
> menu, then results are repeating as many times as pages are, bcz the menu
> will be included in all the pages. So i need to restrict my search not to
> search with the content of a perticular div
>
> ex : <div class="menu"> ................ </div>.
>
>
> Ho do i remove the content between a div from a search
>