Open jtibshirani opened 6 months ago
When scoring a line, we just take the maximum score over all query terms. However, a line that contains multiple query terms often represents a better match. If the query terms appear in order, this would be an even stronger match.
Examples:
Note: currently users often work around this poor ranking by using patterntype:regexp or by wrapping queries in quotes "..."
patterntype:regexp
/cc @sourcegraph/search-platform
Here is some previous attempts I did related to this topic https://github.com/sourcegraph/zoekt/pull/726 and https://github.com/sourcegraph/zoekt/pull/717
When scoring a line, we just take the maximum score over all query terms. However, a line that contains multiple query terms often represents a better match. If the query terms appear in order, this would be an even stronger match.
Examples:
Note: currently users often work around this poor ranking by using
patterntype:regexp
or by wrapping queries in quotes "..."/cc @sourcegraph/search-platform