开发者

Lucene Search for documents that have a particular field?

开发者 https://www.devze.com 2022-12-28 05:00 出处:网络
Lucene.Net - Is there a way to query for documents that contain a particular field. Lets say some of my do开发者_开发技巧cuments have a field \'foo\' and some do not.

Lucene.Net - Is there a way to query for documents that contain a particular field.

Lets say some of my do开发者_开发技巧cuments have a field 'foo' and some do not.

I want to find all documents that have the field 'foo' - regardless of what the value of foo is.

How do I do this? Is it some sort of TermQuery?


Try foo:[* TO *] should work for all non-null values of field 'foo'

0

精彩评论

暂无评论...
验证码 换一张
取 消