Fetching geojson objects from mongodb by drawing a polygon on leaflet map

Hi,
I am a newbie to Elasticsearch. The task that i want to accomplish is that i want to be able to draw a polygon on the leaflet map through leaflet draw tools and the geojson objects that are within the boundary of that particular polygon should be fetched through an elastic search query and displayed back on the map.
i am working on linux with angularjs and my data is already indexed according to elasticsearch but i do not know how and where to build up a query and establish connection between query and database. my data already has spatial objects to be displayed on map. the only problem is related to creating a geospatial query in context of my problem and elastic search. any help would be appreciated

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.