How to query SOLR for empty fields?

前端 未结 7 998
无人共我
无人共我 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

       <field ... default="EMPTY" />
    

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

    0 讨论(0)
提交回复
热议问题