store lowercases in search index

This commit is contained in:
Zlatin Balevsky
2019-11-10 05:14:31 +00:00
parent ee098ace8e
commit 8f3b5aea8d

View File

@@ -39,10 +39,11 @@ class SearchIndex {
split.each { if (it.length() > 0) rv << it }
// then just by ' '
source.split(' ').each { if (it.length() > 0) rv << it }
source.toLowerCase().split(' ').each { if (it.length() > 0) rv << it }
// and add original string
rv << source
rv << source.toLowerCase()
rv.toArray(new String[0])
}