Package org.apache.ofbiz.common
Class KeywordSearchUtil
java.lang.Object
org.apache.ofbiz.common.KeywordSearchUtil
A few utility methods related to Keyword Search.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
expandKeywordForSearch
(String enteredKeyword, Set<String> addToSet, Delegator delegator) fixKeywordsForSearch
(Set<String> keywordSet, boolean anyPrefix, boolean anySuffix, boolean removeStems, boolean isAnd) static void
fixupKeywordSet
(Set<String> keywordSet, Map<String, Long> keywords, String stopWordBagAnd, String stopWordBagOr, boolean removeStems, Set<String> stemSet, boolean forSearch, boolean anyPrefix, boolean anySuffix, boolean isAnd) static boolean
static String
static String
static String
makeKeywordSet
(String str, String separators, boolean forSearch) static void
processForKeywords
(String str, Map<String, Long> keywords, boolean forSearch, boolean anyPrefix, boolean anySuffix, boolean isAnd) static void
processForKeywords
(String str, Map<String, Long> keywords, String separators, String stopWordBagAnd, String stopWordBagOr, boolean removeStems, Set<String> stemSet, boolean forSearch, boolean anyPrefix, boolean anySuffix, boolean isAnd) static void
processKeywordsForIndex
(String str, Map<String, Long> keywords, String separators, String stopWordBagAnd, String stopWordBagOr, boolean removeStems, Set<String> stemSet)
-
Method Details
-
getSeparators
-
getStopWordBagOr
-
getStopWordBagAnd
-
getRemoveStems
public static boolean getRemoveStems() -
getStemSet
-
processForKeywords
-
processKeywordsForIndex
-
processForKeywords
-
fixupKeywordSet
-
makeKeywordSet
-
fixKeywordsForSearch
-
expandKeywordForSearch
-