Range faceting help

Hi All,

I'm trying to run range faceting where my key_field is a regular field
where as value_field is a nested document property.

My nested document structure

{
"rdata" :
{ "mapid" : "integer", "value" : "float" }
}

{
"query": {
"match_all" : {}
},
"facets": {
"StatisticalFacetResult": {
"range": {
"key_field": "rdate", //Non nested
"value_field": "value", // Nested field
"nested": "rdata",
"facet_filter": {
"and": [
{
"term": {
"mapid": 93
}
},
{
"not": {
"term": {
"value": "-99"
}
}
}
]
},
"ranges": [
{
"from": "2012-06-01",
"to": "2012-06-30"
}
]
}
}
}
}

Any help is appreciated,
Abhishek

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

can you provide a minimum example maybe? Including a document you index,
the mapping you have, and most importantly, what do you expect to be
returned (or better, explain your use-case), so people can try to
understand and help better...

Thanks a lot!

--Alex

On Fri, Nov 1, 2013 at 9:45 PM, Abhishek Andhavarapu
abhishek376@gmail.comwrote:

Hi All,

I'm trying to run range faceting where my key_field is a regular field
where as value_field is a nested document property.

My nested document structure

{
"rdata" :
{ "mapid" : "integer", "value" : "float" }
}

{
"query": {
"match_all" : {}
},
"facets": {
"StatisticalFacetResult": {
"range": {
"key_field": "rdate", //Non nested
"value_field": "value", // Nested field
"nested": "rdata",
"facet_filter": {
"and": [
{
"term": {
"mapid": 93
}
},
{
"not": {
"term": {
"value": "-99"
}
}
}
]
},
"ranges": [
{
"from": "2012-06-01",
"to": "2012-06-30"
}
]
}
}
}
}

Any help is appreciated,
Abhishek

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.