: >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,

No.  as explained on the wiki...

>> Amount of slop on phrase queries explicitly included in the 
>> user's query string

note the "explicitly included" part ... if the query string doesn't 
contain any quotation marks, 'qs' isn't used at all.  (as opposed to 'ps' 
which is "Amount of slop on phrase queries built for 'pf' fields")

in a query like this...

   q=child+custody&qs=5&qf=...

...the 'qs' is ignored.  if you want to require that the input words all 
appear within a set slop of eachother (in at least one 'qf' field) you 
need to quote the users input...

   q="child+custody"&qs=5&qf=...
  
: in bad user experience as those docs are not so relevant. What more could i
: do to improve quality in the results?

use 'pf' with very high boosts (compared to the 'qf' boosts) so that phrse 
matching docs appear before non phrase matching docs.



-Hoss

Reply via email to