Skip to content

Should the term query apply normalizers to the search text when searching keyword fields #25487

Closed
@colings86

Description

@colings86

This issue was inspired by https://discuss.elastic.co/t/term-request-with-normalized-keyword-behave-strangely/91120

At the moment if you run a term query on a text field the terms in your query are not passed through the analyzer for that field and instead are considered as the raw terms to search in the index.

In contrary, for keyword fields, the term text is passed through the normalizer for the field, which seems a bit unexpected to me as I had always considered the term query to be used to run raw un-modified searches and the match query to be used when you wanted to applied analysis to the search terms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Search/SearchSearch-related issues that do not fall into other categories>breakingTeam:SearchMeta label for search team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions