Hi Erick,

Do you mean name:foo -desc:foo?

If so, I think that won't work because that would exclude all docs that have 
"foo" in desc field, while we actually do want docs that match desc:foo, but 
only if they also match name:foo.
Only if a doc matches *just* desc:foo should it be excluded from results.

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


----- Original Message -----
> From: Erick Erickson <erickerick...@gmail.com>
> To: solr-user@lucene.apache.org; Otis Gospodnetic <otis_gospodne...@yahoo.com>
> Cc: 
> Sent: Wednesday, October 12, 2011 10:14 AM
> Subject: Re: Excluding docs from results based on matched field
> 
> Otis:
> 
> Hmmm, why doesn't a NOT clause only on desc work?
> edismax allows fielded terms....
> 
> Best
> Erick
> 
>> 
>>  Boost documents which match name and desc;
>>  include docs which just match name;
>>  and exclude docs which only match desc.
>> 
>> 
>>  ?
>> 
>>  One could use very high field weight for name and very low weight for desc 
> field in order to get docs that matched only on the desc field to be all the 
> way 
> at the end of the results.  But is there a way to exclude them from results 
> in 
> the first place?
>> 
>>  Thanks,
>>  Otis
>>  ----
>>  Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
>>  Lucene ecosystem search :: http://search-lucene.com/
>> 
>

Reply via email to