: Is there some magic in edismax or one of the QPs that would make this 
possible:
: 
: Boost documents which match name and desc;
: include docs which just match name;
: and exclude docs which only match desc.

Isn't that pretty much the definition of...

        +name:foo^10 desc:foo

?

If your description is really just a simplification and the idea is that 
"name" and "desc" represent *sets* of fields you want to configure 
independently from the actual query input, you could also deal with this 
using nested queries and localparams...

q=foo&defType=dismax&qf=name+author+title&bq={!desc qf='desc summary' v=$q}

...that will require a (dismax scoring) match on name or author or title, 
and will boost on a (dismax scoring) match on desc or summary fields ... 
but docs that only matching on desc or summary won't cause an overall 
match on the query.


-Hoss

Reply via email to