Environment:
es:2.4
brand
Type is string
under query+aggs
query will get three records: Best
, Choice
, Products
, the three record teams have brand
values, and the others are all the same. Elasticsearch splits Best Choice Products
into three parts.
the following is the query statement:
{
"size": 0,
"aggs": {....},
"query": {
"filtered": {
"filter": {
"bool": {
"must": [
{
"match": {
"brand": {
"query": "Best Choice Products",
"type": "phrase"
}
}
}
]
}
}
}
}
}
the following is part of the result