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.

Reply via email to