Skip to content

Response order may differ when location focus is enabled and different limits are used #1061

Description

@lonvia

When searching with a location bias, then results might get better when the limit parameter is higher.

This happens because the weights used to select the candidates is slightly different than the weights used in rescoring. The candidate search is more biased towards location, which usually makes for better results, unless there are so many matching items near the focus point that all other results are dorpped off the result list.

I considered increasing the limit for candidates. Thing is it makes the queries noticably longer running while only making the problem less prominent but not really solving it at the root, i.e. there may always be more candidates around the focus point than what the limit allows.

In the end, it might be best to have separate queries for candidates that are around the focus point and candidates that cross the importance threshold.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions