Map<String, String> arguments = new HashMap<>();
arguments.put("words", stopWordsFile);
arguments.put("luceneMatchVersion", String.valueOf(Version.LUCENE_31));
arguments.put("ignoreCase", String.valueOf(ignoreCase));
filterFactory.init(arguments);
filterFactory.inform(new HibernateSearchResourceLoader());
Set<String> stopWords = (Set<String>)filterFactory.getStopWords();
List<String> searchTerms = splitSearchText(searchText);
searchTerms.removeAll(stopWords);
return joinSearchTerms(searchTerms);