I did not understand what you are trying to produce. May be you could paste here what kind of output you are expecting?
-- David Pilato | Technical Advocate | elasticsearch.com [email protected] @dadoonet | @elasticsearchfr | @scrutmydocs Le 24 septembre 2014 à 09:19:26, Rifat Nabi ([email protected]) a écrit: Anyone? :( On Sunday, September 21, 2014 9:17:26 PM UTC+6, Rifat Nabi wrote: Hi I'm very new to elasticsearch and was trying to find an efficient way to solve the following problem. Lets say I have the following data structure- { "name": "Hotel Radisson", "rates": [ { "from": "2014-01-01", "to": "2014-02-02", "price": 100 }, { "from": "2014-01-01", "to": "2014-02-02", "price": 150 }, ... ] } Now, I want to do a range query on the rates and calculate a rate using the resulted data from the result. And, use that rate as facet. I was thinking of trying with aggregation. But, is it the correct way to do it? will it be efficient? Or there's a better way to do it. Thanks in advance. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3b6452c6-724c-4612-b6d0-a5f607274dac%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/etPan.54227345.216231b.3194%40MacBook-Air-de-David.local. For more options, visit https://groups.google.com/d/optout.
