Closed valencik closed 5 months ago
The Scorer has a score method:
score
def score(qs: NonEmptyList[Query], docs: Set[Int]): Either[String, List[(Int, Double)]]
I think the common expectation would be that the list be sorted by Score. This should probably be configurable, but sorting by relevance score would be a good default.
We had to manually sort in the JS in #148 which seems a bit late in the flow.
The Scorer has a
score
method:I think the common expectation would be that the list be sorted by Score. This should probably be configurable, but sorting by relevance score would be a good default.
We had to manually sort in the JS in #148 which seems a bit late in the flow.