如何查询SOLR中的空字段? [英] How to query SOLR for empty fields?

查看:291
本文介绍了如何查询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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆