Elasticsearch can't recognize phrase terms?

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:

Output 1

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

Output 2

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)

Please don’t post duplicate questions.
Did you look into the “shingles” feature I suggested in your other post?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.