Find all Lucene documents having a certain field

前端 未结 3 741
星月不相逢
星月不相逢 2020-12-05 19:24

I want to find all documents in the index that have a certain field, regardless of the field\'s value. If at all possible using the query language, not the API.

Is t

3条回答
  •  一生所求
    2020-12-05 19:49

    If you know the type of data stored in your field, you can try a range query. Per example, if your field contain string data, a query like field:[a* TO z*] would return all documents where there is a string value in that field.

提交回复
热议问题