: > For instance a request like: "tomcat servlet" should return document 
: which >>>>>>> have "tomcat is a servlet container" rather than a 
: document that have"tomcat offers the last specification implementaion of 
: the servlet >>>>>>> technology", at least this last should not come 
: before the first in >>>>>>> results.

: Using a phrase query with a high slop value should handle this, as the 
: closer the terms are, the better the score for that match.

Specificly: with dismax this behavior is controlled with the "ps" and "qs" 
params.   A query for....

   q="tomcat+servlet"&qs=5&qf=foo

...will match docs that contain "tomcat is a servlet container" in the 
field foo, but it will not match "tomcat offers the last specification 
implementaion of the servlet" at all.  Queries like these...

   q="tomcat+servlet"&qs=999&qf=foo
   q=tomcat+servlet&qf=foo&pf=foo&ps=5

...will match both docs, but will give the doc with the words closer 
together a higher score becuase of it.  (other factors will affect the 
score however)



-Hoss

Reply via email to