Hey everyone,
We have been implementing ES for our API for a few months, and have finally
come to a wall with the top hits aggregation.
We are trying to use this to get similar items grouped under a parent. The
aggregation is working perfectly, except when we want to add a geolocation
sort. We have done a little bit with the script sorting based on another
field { max: {script: "doc['offer_value'].value"} } we just cant seem
to do this based on the geolocation distance.
Any advice would be extremely appreciated, thank you in advance!
Cody
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/fa836997-036c-4b07-af19-837dcf3f2916%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Just not possible in a single request, eh?
On Tuesday, January 27, 2015 at 11:12:26 AM UTC-7, Cody Stringham wrote:
Hey everyone,
We have been implementing ES for our API for a few months, and have
finally come to a wall with the top hits aggregation.
We are trying to use this to get similar items grouped under a parent. The
aggregation is working perfectly, except when we want to add a geolocation
sort. We have done a little bit with the script sorting based on another
field { max: {script: "doc['offer_value'].value"} } we just cant seem
to do this based on the geolocation distance.
Any advice would be extremely appreciated, thank you in advance!
Cody
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/bc221a99-cb84-4d9c-9254-c338ea21a2ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.