Hello! You can for example add a filter, that will remove the documents that doesn't have a value in a field, like:
fq=!category:[*+TO+*] -- Regards, Rafał Kuć Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch - ElasticSearch > Hi all, > I am facing a problem. > Problem is: > I have updated 2500000 data to solr. > and some of data have "category" field and some of don't have. > for example. > { > "id":"321", > "name":"anurag", > "category":"x" > }, > { > "id":"3", > "name":"john" > } > now i want to search that data who does not have that field. > what query should like. > please reply > It is very urgent - i have to complete this task by today itself > thanks in advance. > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Search-data-who-does-not-have-x-field-tp4046959.html > Sent from the Solr - User mailing list archive at Nabble.com.