On 9-Jan-08, at 2:16 PM, anuvenk wrote:
I have a ps of 10 set in the config. so for search terms like 'work
injury' ,
results that have work and injury within 10 words of one another
are coming
up in the first few results which is good. But it also returns
results that
have work and injury are more than 10 words apart although they are
in page
8 or 9. But i'd like to know if there is a way wherein i could just
tell
solr not to return results with the words from search term that are
more
than 10 words apart.?
In trunk, dismax has a 'qs' parameter that is the slop for phrase
queries in the main query (seems not documented on the wiki). So
qt=dismax
q="work injury"
qs=10
should do the trick.
-Mike