Figured out. use author_geo:[* TO *] will do the trick.
On Thu, Aug 15, 2013 at 1:26 PM, Mingfeng Yang <mfy...@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 > >