Skip to content

Optimize phrase_prefix match query #31921

Closed
@jimczi

Description

@jimczi

We can leverage #28290 to optimize phrase_prefix on match query. If the index_prefix option is set on the field we can query the last term using the prefix field, this should speed up the query significantly (a single term query) and increase the recall since all expansions would match.

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Search/SearchSearch-related issues that do not fall into other categories>enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions