Java Mailing List Archive

http://www.java2.5341.com/

Home » nutch-user.lucene »

How to tell a custom field to searcher

Jeet Singh

2008-04-22


Author LoginPost Reply

I've added a new field "s3-type" in every document while indexing
through my IndexingFilter plugin.

I need to search with "s3-type" as a filter. Same thing happens in
"query-site" plugin (we can search by adding "site:" to query).

So, I replaced "site" with "s3-type" in "query-site" plugin.xml, its
code (only the super constructor part). But my filter doesn't work. It
doesn't
recognize the field "s3-type" during parsing (Query.parse()). Now
"site:" filter also doesn't work because I modified its code.

This is very important for me, please let me know where can I tell Nutch
about my custom field "s3-type"

Thanks
JS


©2008 java2.5341.com - Jax Systems, LLC, U.S.A.