Thanks Hoss,

Yes, +name:foo^10 desc:foo should do it.

Can one configure (e)dismax to add tat + to 1 or more fields, like name in that 
example, in order to require that clause though?


Thanks,
Otis
----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/


>________________________________
>From: Chris Hostetter <hossman_luc...@fucit.org>
>To: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org>; Otis 
>Gospodnetic <otis_gospodne...@yahoo.com>
>Sent: Wednesday, October 12, 2011 12:57 PM
>Subject: Re: Excluding docs from results based on matched field
>
>
>: 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