如何查询空字段的SOLR? [英] How to query SOLR for empty fields?
本文介绍了如何查询空字段的SOLR?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个很大的 solr 索引,我注意到有些字段没有正确更新(索引是动态的).
I have a large solr index, and I have noticed some fields are not updated correctly (the index is dynamic).
这导致某些字段的id"字段为空.
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?
谢谢
推荐答案
试试这个:
?q=-id:["" TO *]
这篇关于如何查询空字段的SOLR?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文