Game Now wrote:
Hi All,

I wanna Nutch help me do a range search, such as price:{1000 TO 2000}
or date[20050101 TO 20051111].

But org.apache.nutch.searcher.Query#parse() method parse them to
"price 1000 2000" and "date 20050101 20051111" when i pass them to the
method.

Anybody can help me complete a range search in Nutch?

You need to implement a query filter plugin.  See, for example:

http://svn.apache.org/viewcvs.cgi/lucene/nutch/trunk/src/plugin/query-more/src/java/org/apache/nutch/searcher/more/DateQueryFilter.java?rev=179640&view=markup

Doug


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to