Class KeywordSearchUtil

java.lang.Object
org.apache.ofbiz.common.KeywordSearchUtil

public final class KeywordSearchUtil extends Object
A few utility methods related to Keyword Search.
  • Method Details

    • getSeparators

      public static String getSeparators()
    • getStopWordBagOr

      public static String getStopWordBagOr()
    • getStopWordBagAnd

      public static String getStopWordBagAnd()
    • getRemoveStems

      public static boolean getRemoveStems()
    • getStemSet

      public static Set<String> getStemSet()
    • processForKeywords

      public static void processForKeywords(String str, Map<String,Long> keywords, boolean forSearch, boolean anyPrefix, boolean anySuffix, boolean isAnd)
    • processKeywordsForIndex

      public static void processKeywordsForIndex(String str, Map<String,Long> keywords, String separators, String stopWordBagAnd, String stopWordBagOr, boolean removeStems, Set<String> stemSet)
    • processForKeywords

      public 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)
    • fixupKeywordSet

      public 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)
    • makeKeywordSet

      public static Set<String> makeKeywordSet(String str, String separators, boolean forSearch)
    • fixKeywordsForSearch

      public static Set<String> fixKeywordsForSearch(Set<String> keywordSet, boolean anyPrefix, boolean anySuffix, boolean removeStems, boolean isAnd)
    • expandKeywordForSearch

      public static boolean expandKeywordForSearch(String enteredKeyword, Set<String> addToSet, Delegator delegator)