Hi,
I want to search this kind of thing.
I have fields like this.
identifiers:[{key: "list1", value:"My name is Giorgi"}, {key:"list2", value:"Giorgi"}, {key:"list3", value:"Giorgi Kharchenko"}]
{
"query" :{
"bool" :{
"must" : {
"match_phrase" :{
"identifiers.value" : "Giorgi"
}
}
}
}
}
}
So I want to get records which contains identifiers that includes search value for value property.
{key:"list2", value:"Giorgi"}
I am not sure how I can build the query.
I tried with term query but was not good.