Terms facet on a single type

FYI

Tried with ES version 0.20.6.

On Wednesday, June 12, 2013 11:40:02 AM UTC+2, Mehrez Marouani wrote:

Hi all.

Is it possible to have "type wide" term facets with [all_terms: true] ?
I have 2 types in the same index but when I request a terms facet with
all_terms=true, it returns the terms in the 2 types.
I already tried with a facet filter (see the exemple below) but it was the
same.

{
"query" : {
"match_all" : { }
},
"size":0,
"facets" : {
"ENGINE_FACET" : {
"terms" : {
"field" : "engine",
"size" : 10,
"order" : "term",
"all_terms" : true
},
"facet_filter" : {
"type" : {
"value" : "vehicle1"
}
}
}
}
}

Regards,

--
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.