RangeFacet for multiple Fields

Hi All,

Is there any way to add range facet for multiple fields?.

--

Do you really want range facet for multiple fields or many range facets?

For the first, I don't know.
For the second option, you can compute many facets in the same query, so have a
range1 facet on field1, and a range2 facet on field2, even a range3 facet on
field1 with different thresholds.

Le 30 novembre 2012 à 11:38, thanuja thanu27@gmail.com a écrit :

Hi All,

Is there any way to add range facet for multiple fields?.

--

--
David Pilato
http://www.scrutmydocs.org/
http://dev.david.pilato.fr/
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--

Thanks David. I need the curl like this,

"range4" : {
"_type" : "range",
"ranges" : [ {
"to" : 0.0,
"count" : 0,
"total_count" : 0,
"total" : 0.0,
"mean" : 0.0
}, {
"from" : 1.0,
"to" : 1000.0,
"count" : 2,
"min" : 16.0,
"max" : 164.0,
"total_count" : 1,
"total" : 164.0,
"mean" : 164.0
} ]

Here , single facet which holds multiple ranges across different fields. Is
there any way to achieve this?

On Fri, Nov 30, 2012 at 4:19 PM, David Pilato david@pilato.fr wrote:

**
Do you really want range facet for multiple fields or many range facets?

For the first, I don't know.
For the second option, you can compute many facets in the same query, so
have a range1 facet on field1, and a range2 facet on field2, even a range3
facet on field1 with different thresholds.

Le 30 novembre 2012 à 11:38, thanuja thanu27@gmail.com a écrit :

Hi All,

Is there any way to add range facet for multiple fields?.

--

--
David Pilato
http://www.scrutmydocs.org/
http://dev.david.pilato.fr/
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--

--

I will explain a little bit more.

I need to do single facet which has many ranges across multiple fields.

"range4" : {
"_type" : "range",
"ranges" : [ {
"to" : 0.0,
"count" : 0,
"total_count" : 0,
"total" : 0.0,
"mean" : 0.0
}, {
"from" : 1.0,
"to" : 1000.0,
"count" : 2,
"min" : 16.0,
"max" : 164.0,
"total_count" : 2,
"total" : 180.0,
"mean" : 90.0
} ]

On Fri, Nov 30, 2012 at 4:41 PM, thanuja gandhi thanu27@gmail.com wrote:

"range4" : {
"_type" : "range",
"ranges" : [ {
"to" : 0.0,
"count" : 0,
"total_count" : 0,
"total" : 0.0,
"mean" : 0.0
}, {
"from" : 1.0,
"to" : 1000.0,
"count" : 2,
"min" : 16.0,
"max" : 164.0,
"total_count" : 1,
"total" : 164.0,
"mean" : 164.0
} ]

--