Re: Facet By Distance

2015-02-26 Thread Ahmed Adel
Thank you for your replies, added q and it works! I agree the examples are a bit confusing. It turned out also that points are clustered around the center and had to increase d as well. On Wed, Feb 25, 2015 at 11:46 PM, Alexandre Rafalovitch wrote: > In the examples it used to default to *:* wit

Re: Facet By Distance

2015-02-25 Thread Alexandre Rafalovitch
In the examples it used to default to *:* with default params, which caused even more confusion. Regards, Alex. Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter: http://www.solr-start.com/ On 25 February 2015 at 15:21, david.w.smi...@gmail.com wrote: > If ‘q’ is absen

Re: Facet By Distance

2015-02-25 Thread david.w.smi...@gmail.com
If ‘q’ is absent, then you always match nothing (there may be exceptions?); so it’s sort of required, in effect. I wish it defaulted to *:*. ~ David Smiley Freelance Apache Lucene/Solr Search Consultant/Developer http://www.linkedin.com/in/davidwsmiley On Wed, Feb 25, 2015 at 2:28 PM, Ahmed Adel

Re: Facet By Distance

2015-02-25 Thread Ahmed Adel
Hi, Thank you for your reply. I added a filter query to the query in two ways as follows: fq={!geofilt}&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()&d=0.2 --> returns 0 docs q=*:*&fq={!geofilt}&sfield=st

Re: Facet By Distance

2015-02-25 Thread david.w.smi...@gmail.com
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 a