Lucene not null query?

2019-03-24 14:36发布

How can we construct a query to search for particular field to be not null?

field_name:* is not working. I tried field_name:[a* to z*] this works fine for English, but does not cover all languages.

Any alternative suggestions?

标签: java lucene
7条回答
对你真心纯属浪费
2楼-- · 2019-03-24 15:27

For anyone else arriving late to the question, the documentation includes this little snippet:

  • where the field title has any non-null value:
    _exists_:title
查看更多
登录 后发表回答