mirror of https://github.com/zlatinb/muwire
store lowercases in search index
parent
ee098ace8e
commit
8f3b5aea8d
|
@ -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])
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue