Skip to content

Create integration tests for match_phrase score behavior #445

@orangejulius

Description

@orangejulius

Despite having used the Elasticsearch match_phrase query for years, we actually don't know much about the details of its scoring.

In particular, does slop have any impact on the score? For example, consider the query main street and two documents with values main street and street main.

With slop: 1, both documents will match the query. But do they get the same score? If they do, then setting high slop values is totally fine. Documents with "better" matches will naturally be scored higher. If they don't, then match_phrase queries are a little harder to work with out of the box.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions