Java Mailing List Archive

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

Home » nutch-user.lucene »

Nutch Query not giving required results

pavankumar

2008-05-20

Replies: Find Java Web Hosting

Author LoginPost Reply

Hi,
    I want to filter out search results such that only urls with a
specific word in the "url" field should be present in the output. If the
word to search for in the "url" field has a hyphen(-), we are not getting
any results.
I am using the following code snippet.

query.addRequiredTerm(<wordtosearch>, "url");
hits = bean.search(query, Short.MAX_VALUE);

if the <wordtosearch> has a hyphen in it, no results are obtained.
Please help me on solving this issue.

--
Sent from the Nutch - User mailing list archive at Nabble.com.

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