Skip to content
This repository has been archived by the owner on Jul 18, 2018. It is now read-only.

Querying Geo locations #2

Closed
amitjindal opened this issue Mar 19, 2013 · 3 comments
Closed

Querying Geo locations #2

amitjindal opened this issue Mar 19, 2013 · 3 comments

Comments

@amitjindal
Copy link

Hi, I was looking for a .net api to elastic search and found this project. I have a question though. I need to use geo location search for distance. How can I do that with this library?

Thanks for this library!

Jack

@medcl
Copy link
Owner

medcl commented Mar 20, 2013

this api is not available right now,but it is easy to hack on,i will add it soon, :)

@amitjindal
Copy link
Author

Thanks for replying.
Could you please let me know when you will be able to do that? I will wait as I cannot evaluate this without geo_distance. I only need geo_distance for now.
Also if you could guide me on how to add similar things, I could possibly try and do that myself.

@medcl
Copy link
Owner

medcl commented Mar 21, 2013

done,check it out.fdf6213053b33216cc34833b392451266768b17c

a example:
var geoDistanceFilter = new GeoDistanceFilter("pin.location", "40,-70", "200km");
var result = client.Search(index, "type", new FilteredQuery(new MatchAllQuery(), geoDistanceFilter));

@medcl medcl closed this as completed Mar 21, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants