From my StackOverflow post:
I'm trying to count how many times / documents my terms or keywords
occurred from my specified query
Here's my aggregation query:
"aggs" => [
"KEYWORDS" => [
"filters" => [
"filters" => [
"term1" => [
"term" => [
'content' => "isko"
]
],
"term2" => [
"term" => [
'content' => "manila"
]
]
]
]
]
]
and here's the response:
I'm almost near to my desired output, however when I wanted the right phrase / keywords, it is not being recognized by Elasticsearch
"aggs" => [
"KEYWORDS" => [
"filters" => [
"filters" => [
"term1" => [
"term" => [
'content' => "mayor isko moreno"
]
],
"term2" => [
"term" => [
'content' => "mayor vico sotto"
]
]
]
]
]
]
new response
Does this mean Elasticsearch can't recognize phrases?
P.S. I'm developing a Laravel app (a PHP-based framework, so I'm using the official Elastcisearch PHP API https://github.com/elastic/elasticsearch-php)