How to query SOLR for empty fields? Ask Question

How to query SOLR for empty fields? Ask Question

I have a large solr index, and I have noticed some fields are not updated correctly (the index is dynamic).

This has resulted in some fields having an empty "id" field.

I have tried these queries, but they didn't work:

 id:''
 id:NULL
 id:null
 id:""
 id:
 id:['' TO *]

Is there a way to query empty fields?

Thanks

ベストアンサー1

Try this:

?q=-id:["" TO *]

おすすめ記事