How to query SOLR for empty fields?

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

    One caveat! If you want to compose this via OR or AND you cannot use it in this form:

    -myfield:*
    

    but you must use

    (*:* NOT myfield:*)
    

    This form is perfectly composable. Apparently SOLR will expand the first form to the second, but only when it is a top node. Hope this saves you some time!

提交回复
热议问题