Nested and faceting


(pric) #1

Hello,
I have a document with nested mapping.

{
"obj1" : [
{
"name" : ["fr","de"] ,
"count" : 4
},
{
"name" : ["en","de"] ,
"count" : 6
}
]
}

Now if I do a term facet with scope I get:
fr = 1, en = 1, de = 2

I would like to get:
fr = 1, en = 1, de = 1
Just count token one time by document.
Is it possible? thanks.


(system) #2