Interface FullTextSearchStrategy
-
- All Known Implementing Classes:
DefaultFullTextSearchStrategy
public interface FullTextSearchStrategyStrategy to be used by Fulltext Search
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.Collection<java.lang.String>getAvailableLanguages(java.lang.String typeCode)Returns a list of languages by which it is possible to search on a given type.java.util.Collection<ValueComparisonOperator>getAvailableOperators(java.lang.String typeCode, java.lang.String fieldName)Looks for all available compare operators for filter of specified field name.java.lang.StringgetFieldType(java.lang.String typeCode, java.lang.String fieldName)Looks for a platform type code of a value for filter of specified fieldName.default java.lang.StringgetStrategyName()Returns name of the search strategy which can be used in configuration of preferred search strategybooleanisLocalized(java.lang.String typeCode, java.lang.String fieldName)Checks if filter of specified fieldName supports localized values.
-
-
-
Method Detail
-
getFieldType
java.lang.String getFieldType(java.lang.String typeCode, java.lang.String fieldName)Looks for a platform type code of a value for filter of specified fieldName.- Parameters:
typeCode- type code of values to be filteredfieldName- name of a field for which operators are to be provided- Returns:
- type code of a value of filter or
nullif unknown
-
isLocalized
boolean isLocalized(java.lang.String typeCode, java.lang.String fieldName)Checks if filter of specified fieldName supports localized values.- Parameters:
typeCode- type code of values to be filteredfieldName- fieldName of a field for which operators are to be provided- Returns:
trueif filter is localized
-
getAvailableLanguages
default java.util.Collection<java.lang.String> getAvailableLanguages(java.lang.String typeCode)
Returns a list of languages by which it is possible to search on a given type.- Parameters:
typeCode- type code of values to be filtered- Returns:
- list of languages in the form of ISO codes
-
getAvailableOperators
java.util.Collection<ValueComparisonOperator> getAvailableOperators(java.lang.String typeCode, java.lang.String fieldName)
Looks for all available compare operators for filter of specified field name.- Parameters:
typeCode- type code of values to be filteredfieldName- name of a field for which operators are to be provided- Returns:
- collection of supported operators
-
getStrategyName
default java.lang.String getStrategyName()
Returns name of the search strategy which can be used in configuration of preferred search strategy- Returns:
- name of the search strategy
-
-