Skip to content

Add doc match score support to percolate api #13827

@ncolomer

Description

@ncolomer

The percolate API documentation mentions track_scores and sort options in the Additional request body options section. More precisely, we can read the following notes, respectively:

The _score is based on the query and represents how the query matched the percolate query’s metadata, not how the document (that is being percolated) matched the query.
[...]
Like track_score the score is based on the query and represents how the query matched to the percolate query’s metadata and not how the document being percolated matched to the query.

I'm wondering why there is nothing in the API about the score of the document itself (being percolated) among the various percolator queries?

I read somewhere that this would be due to hit score being relative to its resultset, and that in a percolator query, we only consider one document at a time, so the score on each percolator query is not really relevant.

I was expecting #3506 to be the solution, but it's not related after having a look. Such a feature is also mentioned here in the mailing list but there is no technical answer.

Can you confirm? Is there any way/plan to get a percolation score?

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