Re: Query related to GeoSpatial Search

2018-02-18 Thread Aakanksha Gupta
Thanks for a lot Siddhant Aggarwal for the quick response! On Sun, Feb 18, 2018 at 3:22 PM, Sidhant Aggarwal wrote: > Hi Aakanksha, > > You will need to use a boolean query to do this. In the boolean query > first, add a clause for the distance attribute using MUST clause and then > add another

Re: Query related to GeoSpatial Search

2018-02-17 Thread Sidhant Aggarwal
Hi Aakanksha, You will need to use a boolean query to do this. In the boolean query first, add a clause for the distance attribute using MUST clause and then add another timestamp query MUST clause. Use this: https://lucene.apache.org/core/6_1_0/core/org/apache/lucene/search/BooleanQuery.html

Query related to GeoSpatial Search

2018-02-17 Thread Aakanksha Gupta
I have an assignment to find cab drivers close to a given user's location(similar to Grab/Lyft). I have the drivers' location(latitude, longitude) with timestamp. This data is pushed by their mobile to my server every 2 minutes. When a user requests a ride, I need to find the nearest driver availab