Hi All,
below query not working please help on this:
{
"query" : {
"bool": {
"must": [
{"term": {"field1": "value1"}},
{"wildcard": {"field2": "*value2*"}}
],
"must_not": [ ],
"should": [ ]
}
},
"aggs" : {
"genres": {
"terms" : { "field" : "field3" }
}
}
}
in result, the bucket shows empty
but its able to get with below
{
"query" : {
"bool": {
"must": [
{"term": {"field1": "value1"}},
{"wildcard": {"field2": "*value2*"}}
],
"must_not": [ ],
"should": [ ]
}
},
"aggs" : {
"genres": {
"terms" : { "field" : "**field2**" }
}
}
}
and
{
"query" : {
"bool": {
"must": [
{"term": {"field1": "value1"}},
{"wildcard": {"field2": "*value2*"}}
],
"must_not": [ ],
"should": [ ]
}
},
"aggs" : {
"genres": {
"terms" : { "field" : "**field1**" }
}
}
}