polyfractal / sherlock

MIT License
119 stars 28 forks source link

Added field() method for geofilters; added class to sort by GeoDistance #62

Closed dfox288 closed 11 years ago

dfox288 commented 11 years ago

Seems that the documentation in elasticsearch regarding pin.location is just a default they used - which doesn't mean that other developers will actually follow that example. I've added the possibility to change the name of the field containing the geocoordinates with a fallback to pin.location.

There's also a new sorting class to sort by GeoDistance.

I hope this is useful.

polyfractal commented 11 years ago

Oh, interesting. I didn't realize that was just a field name...thanks for fixing it. Goes to show how little I use the geo API =)