You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by ".: Abhishek :." <ab...@gmail.com> on 2011/02/01 05:40:55 UTC
Implementing a negative keyword filter in index
Hi all,
I posted this question in user@nutch.apache.org, sorry if I am duplicating
but thought it would be good to post here as well.
I am planning to implement a negative keyword indexer such that if a
negative keyword appears in a segment I should never show up it during the
search. I have the following steps in mind, please let me know if its right.
- Writing a plug-in
- Extend the IndexingFilter.
- Do a NutchDocument.removeField for the negative keyword.
- return the doc
Now the questions are,
- The NutchDocument is always mapped as a HTML page, so if I am doing the
thing above, Am I really removing the segment from getting indexed or am I
preventing the page from being indexed?
Also, please let me know what I am intending to do is right? Thanks again
all for your time.
Cheers,
Abhi