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 8c45701a..7c678a34 100644 --- a/core/src/main/groovy/com/muwire/core/search/SearchIndex.groovy +++ b/core/src/main/groovy/com/muwire/core/search/SearchIndex.groovy @@ -54,7 +54,7 @@ class SearchIndex { // first split by split pattern String sourceSplit = source.replaceAll(SplitPattern.SPLIT_PATTERN, " ").toLowerCase() String [] split = sourceSplit.split(" ") - def rv = [] + def rv = new HashSet() split.each { if (it.length() > 0) rv << it } // then just by ' '