You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Mingfeng Yang <mf...@wisewindow.com> on 2013/08/15 22:26:49 UTC
list docs with geo location info
I have a schema with a geolocation field named "author_geo" defined as
<field name="author_geo" type="location" indexed="true"
stored="true" />
How can I list docs whose author_geo fields are not empty?
Seems filter query "fq=author_geo:*" does not work like other fields which
are string or text or float type.
curl
'localhost/solr/select?q=*:*&rows=10&wt=json&indent=true&fq=author_geo:*&fl=author_geo'
What's the right way of doing it?
Thanks,
Mingfeng
Re: list docs with geo location info
Posted by Mingfeng Yang <mf...@wisewindow.com>.
Figured out. use author_geo:[* TO *] will do the trick.
On Thu, Aug 15, 2013 at 1:26 PM, Mingfeng Yang <mf...@wisewindow.com>wrote:
> I have a schema with a geolocation field named "author_geo" defined as
>
> <field name="author_geo" type="location" indexed="true"
> stored="true" />
>
> How can I list docs whose author_geo fields are not empty?
>
> Seems filter query "fq=author_geo:*" does not work like other fields which
> are string or text or float type.
>
> curl
> 'localhost/solr/select?q=*:*&rows=10&wt=json&indent=true&fq=author_geo:*&fl=author_geo'
>
> What's the right way of doing it?
>
> Thanks,
> Mingfeng
>
>