Skip to content

ESQL: full-text function not considering a RENAMEd valid searchable field #143859

@astefan

Description

@astefan

Description

from message_types
 | rename type AS id
 | where match_phrase(id, "world hello")

results in

[MatchPhrase] function cannot operate on [id], which is not a field from an index mapping

but the simplified query

from message_types
 | where match_phrase(type, "world hello")

doesn't throw any verification errors.

Metadata

Metadata

Assignees

Labels

:Search Relevance/ES|QLSearch functionality in ES|QL>bugTeam:Search RelevanceMeta label for the Search Relevance team in Elasticsearchpriority:highA label for assessing bug priority to be used by ES engineers

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions