Package org.ametys.cms.search.solr.field
Class MultilingualStringSearchField
java.lang.Object
org.ametys.cms.search.solr.field.AbstractModelItemSearchField
org.ametys.cms.search.solr.field.MultilingualStringSearchField
- All Implemented Interfaces:
SearchField
String generic search field.
-
Field Summary
Fields inherited from class org.ametys.cms.search.solr.field.AbstractModelItemSearchField
_joinPaths, _path
-
Constructor Summary
ConstructorDescriptionMultilingualStringSearchField
(String path, Optional<Context> context) Build a multilingual string search field.Build a multilingual string search field. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Get the facet field suffix corresponding to this field.protected String
Get the sort field suffix corresponding to this field.getCurrentLanguage
(Optional<Context> context) Gets the current languageMethods inherited from class org.ametys.cms.search.solr.field.AbstractModelItemSearchField
getFacetField, getJoinedPaths, getName, getSortField, isJoined
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.cms.search.SearchField
getFacetFunction
-
Constructor Details
-
MultilingualStringSearchField
Build a multilingual string search field.- Parameters:
path
- The field path.context
- The context
-
MultilingualStringSearchField
public MultilingualStringSearchField(List<String> joinPaths, String finalPath, Optional<Context> context) Build a multilingual string search field.- Parameters:
joinPaths
- The join field pathsfinalPath
- The final field path.context
- The context
-
-
Method Details
-
_getSortFieldSuffix
Description copied from class:AbstractModelItemSearchField
Get the sort field suffix corresponding to this field. Return null if not sortable.- Specified by:
_getSortFieldSuffix
in classAbstractModelItemSearchField
- Returns:
- the sort field suffix. Null if not sortable.
-
getCurrentLanguage
Gets the current language- Parameters:
context
- The context- Returns:
- the current language
-
_getFacetFieldSuffix
Description copied from class:AbstractModelItemSearchField
Get the facet field suffix corresponding to this field. Return null if not facetable.- Specified by:
_getFacetFieldSuffix
in classAbstractModelItemSearchField
- Returns:
- the facet field suffix. Null if not facetable.
-