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