Brian,

...?q=id:(2  3 5) -4


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



----- Original Message ----
> From: Brian Lamb <brian.l...@journalexperts.com>
> To: solr-user@lucene.apache.org
> Sent: Wed, March 9, 2011 4:05:10 PM
> Subject: Excluding results from more like this
> 
> Hi all,
> 
> I'm using MoreLikeThis to find similar results but I'd like to  exclude
> records by the id number. For example, I use the following  URL:
> 
> http://localhost:8983/solr/search/?q=id:(2  3
> 5)&mlt=true&mlt.fl=description,id&fl=*,score
> 
> How would I  exclude record 4 form the MoreLikeThis results?
> 
> I tried,
> 
> http://localhost:8983/solr/search/?q=id:(2  3
> 5)&mlt=true&mlt.fl=description,id&fl=*,score&mlt.q=!4
> 
> But  that still returned record 4 in the MoreLikeThisResults.
> 

Reply via email to