store lowercases in search index

pull/24/head
Zlatin Balevsky 2019-11-10 05:14:31 +00:00
parent ee098ace8e
commit 8f3b5aea8d
1 changed files with 2 additions and 1 deletions

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])
}