简体   繁体   English

Solr查询以搜索空白字段

[英]solr query to search for blank fields

I have apache solr search version 1.4 我有Apache Solr搜索版本1.4

i want to search for all blank field but it's not working 我想搜索所有空白字段,但无法正常工作

query is : 查询是:

select?q=-l_occupation_code%3A%5B%2A+TO+%2A%5D&fq=(member_id:332273%20OR%20member_id:7254)&fl=*&start=0&rows=50

using -l_occupation_code:[* TO *] to find all records for field l_occupation_code that contains the blank value. 使用-l_occupation_code:[* TO *]查找包含空白值的字段l_occupation_code的所有记录。

please help 请帮忙

I would try a slight variation of what you have here: 我会尝试对您在此处的内容进行一些更改:

-l_occupation_code:["" TO *]

there can be some variation from the documentation currently online due to versions and field type. 由于版本和字段类型不同,当前在线文档可能会有一些差异。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM