Solr - How do I construct a query that requires a NOT NULL Location field

后端 未结 2 1925

I have a Solr index with a set of coordinates stored as a Location type; I would like to query for documents where this field has a non-null value.

What is

2条回答
  •  佛祖请我去吃肉
    2021-02-11 17:21

    You can add this to your query fieldname:['' TO *]. This will be the equivalent of a NOT NULL check.

    I got this from the post - Solr - Field Not Null Searches

提交回复
热议问题