Author Login
Post 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.