diff --git a/core/src/main/groovy/com/muwire/core/search/SearchIndex.groovy b/core/src/main/groovy/com/muwire/core/search/SearchIndex.groovy index 3e87a762..2767b819 100644 --- a/core/src/main/groovy/com/muwire/core/search/SearchIndex.groovy +++ b/core/src/main/groovy/com/muwire/core/search/SearchIndex.groovy @@ -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]) }