Fix compatibility issues with OR operator and inverse terms

This commit is contained in:
Junegunn Choi committed 2015-11-10 01:54:37 +09:00
1 parent e7e86b68f4
commit 31278bcc68
4 files changed
+22 -9

No files matched your search

+3
View File
@@ -63,6 +63,9 @@ func (item *Item) Rank(cache bool) Rank {
matchlen += end - begin
}
}
if matchlen == 0 {
matchlen = math.MaxUint16
}
var tiebreak uint16
switch rankTiebreak {
case byLength: