Revise ranking algorithm

This commit is contained in:
Junegunn Choi committed 2016-09-18 14:34:46 +09:00
1 parent 8ef2420677
commit 2fc7c18747
20 files changed
+961 -460

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ import (
func TestChunkList(t *testing.T) {
// FIXME global
sortCriteria = []criterion{byMatchLen, byLength}
sortCriteria = []criterion{byScore, byLength}
cl := NewChunkList(func(s []byte, i int) *Item {
return &Item{text: util.ToChars(s), index: int32(i * 2)}