All,
I'm trying to run a must_not filter wrapped in bool
My Mappings
{
"response": {
"properties": {
"rtext": {
"type": "nested",
"properties": {
"textmapid": {
"type": "integer"
},
"textvalue": {
"type": "string"
}
}
}
}
}
}
Sample data
{
"rtext" : [
{
"textmapid" : 1,
"textvalue" : "Jennifer"
},
{
"textmapid" : 2,
"textvalue" : "Adam"
}
]
}
My Query comes back with hits.
{
"filter": {
"nested": {
"path": "rtext",
"query": {
"bool": {
"must_not": [
{
"match": {
"rtext.textvalue": "Jennifer"
}
},
{
"term": {
"rtext.textmapid": 1
}
}
]
}
}
}
}
}
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.