How to do NOT IN query in Solr?

Viewed 30371

How can I exclude a set of document IDs from Solr result set? Essentially something like

/select?q=tag_id:367 AND NOT id:(306670,302209)

I tried it and it does not exclude documents with those id's.

2 Answers
Related