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/757704a4-28e9-4d3a-8bbe-61197c936907%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to