Nested Type Mapping - contains query


(Karthik Ramachandran) #1

Nested Type - Contains Search

I have my index contain a nested type which has multiple elements.

Mapping is something like
{...
List1:{ type:nested,
properties:{List1Attr1:string,List1Attr2:Number Value, List1Attr3:True/False}
}
}

I need to get the count where my list contains the pair of below values

Lis1Attr1 has (Value1 and Value 2), count(documents)
Lis1Attr1 has (Value2 and Value 3), count(documents)
Lis1Attr1 has (Value6 and Value 7), count(documents)


(system) #2