jina-ai / executors

internal-only
Apache License 2.0
31 stars 12 forks source link

add top-k to MatchMerger #113

Open florian-hoenicke opened 3 years ago

florian-hoenicke commented 3 years ago

Currently, the MatchMerger collects the matches from the shards and appends all of them to a single output. This might be confusing to the user since they get top-k * num_shards results.

Please implement the top-k into the match merger