How to query SOLR for empty fields?

前端 未结 7 1117
无人共我
无人共我 2020-12-04 08:02

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\" f

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-04 08:56

    If you have a large index, you should use a default value

       
    

    and then query for this default value. This is much more efficient than q=-id:["" TO *]

提交回复
热议问题