Hi, This will “return all the documents in the index” because you did nothing to filter them out. Your query is *:* (everything) and there are no filter queries.
~ David Smiley Freelance Apache Lucene/Solr Search Consultant/Developer http://www.linkedin.com/in/davidwsmiley On Wed, Feb 25, 2015 at 12:27 PM, Ahmed Adel <ahmed.a...@badrit.com> wrote: > Hello, > > I'm trying to get Facet By Distance working on an index with LatLonType > fields. The schema is as follows: > > <fields> > ... > <field name="trip_duration" type="int" indexed="true" stored="true"/> > <field name="start_station" type="location" indexed="true" stored="true" /> > <field name="end_station" type="location" indexed="true" stored="true" /> > <field name="birth_year" type="int" stored="true"/> > <field name="gender" type="int" stored="true" /> > ... > </fields> > > > And the query I'm running is: > > q=*:*&sfield=start_station&pt=40.71754834,-74.01322069&facet.query={!frange > l=0.0 u=0.1}geodist()&facet.query={!frange l=0.10001 u=0.2}geodist() > > > But it returns all the documents in the index so it seems something is > missing. I'm using Solr 4.9.0. > > -- > > A. Adel >