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 <apa...@elyograg.org> wrote: > On 2/19/2018 8:49 AM, Aakanksha Gupta wrote: > > Thanks for the quick solution. It works. I just had to replace

Re: Help required with SolrJ

2018-02-21 Thread Aakanksha Gupta
you don't cache them, see: > https://lucidworks.com/2012/02/23/date-math-now-and-filter-queries/ > > Best, > Erick > > On Mon, Feb 19, 2018 at 7:49 AM, Aakanksha Gupta > <aakankshagupta2...@gmail.com> wrote: > > Hi Shawn, > > Thanks for the qu

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 <elyog...@elyograg.org> wrote: > On 2/19/2018 6:44

Help required with SolrJ

2018-02-19 Thread Aakanksha Gupta
Hi all, I'm looking for some help with SolrJ for querying spatial data. I have the following URL query working fine, where it returns the results which are within 100km radius from the 'pt' provided in the URL and where the timestamp field is between the two timestamps provided in the URL. It also

Re: Getting the error - The field '*********' does not support spatial filtering

2018-02-19 Thread Aakanksha Gupta
on/json' --data-binary '{ > > "add-field":{ > >"name":"geoLocation", > >"type":"location", > >"stored":true, > > "indexed":true > > } > > }' ht

Getting the error - The field '*********' does not support spatial filtering

2018-02-18 Thread Aakanksha Gupta
Hi all, I'm a newbie to Solr. I'm trying to use it for GeoSpatial Search and I'm facing an issue while using it. I've tried using the new 'location' field type() as well as the deprecated solr.LatLonType fieldtype, but I always get the error: org.apache.solr.common.SolrException: The field