Skip to content

Ability to add score for top k results #4

@nhaberl

Description

@nhaberl

Hi, its a nice library ... is there a way to add data to any Node so when retriueving thousand of results for given prefix only the top k results are returned.
Adding any kinf of score to an entry which is internally sorted would be great.
Guess any mix of length and score would be great ... so if there is a key which matches the prefix it should return always as with others which are ranked higher.

This allows for early termination when searching for top k (10 or 20) ...
A custom comparer would be fine so you can customize this behaviour.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions