lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: Please Help !! Question about Query Phrase Slop (qs) in dismax
Date Mon, 24 Nov 2008 04:59:26 GMT
On Sun, Nov 23, 2008 at 11:51 PM, anuvenk <anuvenkatesh@hotmail.com> wrote:
> Please help someone...i've been waiting for an answer for the last couple of
> days & no one seems to be helping out here. I did search the wiki & this
> forum for an answer. But couldn't find an answer. I know if ps is set to 5
> words within 5 words of one another receive a boost in score. But is there a
> way to not return results that have the words in search terms more than 5
> words apart. ?

Not with dismax.  I'm not sure why it's a problem, given that with
enough boost you should be able to ensure that all of the results with
a slop less than 5 appear before other results.
Anyway, if you want to restrict results to those with a slop of 5, use
the standard query parser with an explicit sloppy phrase query:

"north dakota 1031 exchange lawyers"~5

-Yonik


> Typical example: north dakota 1031 exchange lawyers
> My first result is absolutely ir-relevant. It returned a north dakota doc
> though but had an occurrence of attorney somewhere & an occurrence of
> exchange (not related to 1031 exchange though). They were not within 5 words
> of one another. My guys have been hammering me reg this relevancy issue.
> Please help someone.
>
> anuvenk wrote:
>>
>> From the solr wiki, it sounded like if qs is set to 5 for example, & if
>> the search term is 'child custody', only docs with 'child' & 'custody'
>> within 5 words of one another would be returned in results. Is this
>> correct? If so, it doesn't seem to be working for me. I see docs with
>> 'child' & 'custody' more than 5 words of one another (excluding stop
>> words) which is resulting in bad user experience as those docs are not so
>> relevant. What more could i do to improve quality in the results?
>>
>
> --
> View this message in context: http://www.nabble.com/Please-Help-%21%21-Question-about-Query-Phrase-Slop-%28qs%29-in-dismax-tp20643003p20654906.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>

Mime
View raw message