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.
--
View this message in context:
http://www.nabble.com/Nutch-Query-not-giving-required-results-tp17334490p17334490.html
Sent from the Nutch - User mailing list archive at Nabble.com.