Hello!

I am trying to just get ANY filtering on the URL working, but so far no
luck. I tried just specifying "... url:something" in the search string, but
it doesn't seem to work. The same if I try to add it programmatically as you
did in your code sample.

The result is always the same: If <wordtosearch> also appears in the full
text of the document, then the sample text given as the summary for the hit
is skewed to include <wordtosearch> as well, even though I really only
wanted it to be relevant in the URL, not at all in the full text of the
document.

Any idea how to fix this?




pavankumar wrote:
> 
> 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-tp17334490p17480666.html
Sent from the Nutch - User mailing list archive at Nabble.com.

Reply via email to