Re: Help required with SolrJ

2018-02-21 Thread Aakanksha Gupta
Thanks Shawn! That was just a small fix from my side. Thanks for your help! On Tue, Feb 20, 2018 at 1:43 AM, Shawn Heisey wrote: > On 2/19/2018 8:49 AM, Aakanksha Gupta wrote: > > Thanks for the quick solution. It works. I just had to replace %20 to > space > > in query.addFilterQuery("timestamp

Re: Help required with SolrJ

2018-02-21 Thread Aakanksha Gupta
Thanks Erick. On Tue, Feb 20, 2018 at 1:11 AM, Erick Erickson wrote: > Aakanksha: > > Be a little careful here, filter queries with timestamps can be > tricky. The example you have is fine, but for end-points with finer > granularity may be best if you don't cache them, see: > https://lucidworks

Re: Help required with SolrJ

2018-02-19 Thread Shawn Heisey
On 2/19/2018 8:49 AM, Aakanksha Gupta wrote: > Thanks for the quick solution. It works. I just had to replace %20 to space > in query.addFilterQuery("timestamp:[151890840 TO 151891200]"); > > Thanks a ton! :) Right, I didn't even really look closely at what was in the fq parameter, I just

Re: Help required with SolrJ

2018-02-19 Thread Erick Erickson
Aakanksha: Be a little careful here, filter queries with timestamps can be tricky. The example you have is fine, but for end-points with finer granularity may be best if you don't cache them, see: https://lucidworks.com/2012/02/23/date-math-now-and-filter-queries/ Best, Erick On Mon, Feb 19, 201

Re: Help required with SolrJ

2018-02-19 Thread Aakanksha Gupta
Hi Shawn, Thanks for the quick solution. It works. I just had to replace %20 to space in query.addFilterQuery("timestamp:[151890840 TO 151891200]"); Thanks a ton! :) On Mon, Feb 19, 2018 at 11:43 PM, Shawn Heisey wrote: > On 2/19/2018 6:44 AM, Aakanksha Gupta wrote: > >> http://localhos

Re: Help required with SolrJ

2018-02-19 Thread Shawn Heisey
On 2/19/2018 6:44 AM, Aakanksha Gupta wrote: http://localhost:8983/solr/geoloc/select/?q=*:*&fq={!geofilt}&sfield=latlong&pt=-6.08165,145.8612430&d=100&wt=json&fq=timestamp:[151890840%20TO%20151891200]&fl=*,_dist_:geodist() But I'm not sure how to build the SolrJ equivalent of this query