Package org.ametys.cms.search.solr.field
Class ContentSearchField
java.lang.Object
org.ametys.cms.search.solr.field.AbstractModelItemSearchField
org.ametys.cms.search.solr.field.StringSearchField
org.ametys.cms.search.solr.field.ContentSearchField
- All Implemented Interfaces:
SearchField
Content generic search field.
-
Field Summary
Fields inherited from class org.ametys.cms.search.solr.field.AbstractModelItemSearchField
_joinPaths, _path -
Constructor Summary
ConstructorsConstructorDescriptionContentSearchField(String path) Build a content search field.ContentSearchField(String path, boolean isMultilingual, Optional<Context> context) Build a content search field.ContentSearchField(List<String> joinPaths, String finalPath) Build a content search field.ContentSearchField(List<String> joinPaths, String finalPath, boolean isMultilingual, Optional<Context> context) Build a content search field. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGet the sort field suffix corresponding to this field.Get the facet field corresponding to this field.Gets the joined pathsMethods inherited from class org.ametys.cms.search.solr.field.StringSearchField
_getFacetFieldSuffixMethods inherited from class org.ametys.cms.search.solr.field.AbstractModelItemSearchField
getName, getSortField, isJoinedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.cms.search.SearchField
getFacetFunction
-
Constructor Details
-
ContentSearchField
Build a content search field.- Parameters:
path- The field path.
-
ContentSearchField
Build a content search field.- Parameters:
joinPaths- The join field pathsfinalPath- The final field path.
-
ContentSearchField
Build a content search field.- Parameters:
path- The field path.isMultilingual-trueif the Content has a multlilingual titlecontext- The context
-
ContentSearchField
public ContentSearchField(List<String> joinPaths, String finalPath, boolean isMultilingual, Optional<Context> context) Build a content search field.- Parameters:
joinPaths- The join field pathsfinalPath- The final field path.isMultilingual-trueif the Content has a multilingual titlecontext- The context
-
-
Method Details
-
getJoinedPaths
Description copied from interface:SearchFieldGets the joined paths- Specified by:
getJoinedPathsin interfaceSearchField- Overrides:
getJoinedPathsin classAbstractModelItemSearchField- Returns:
- the joined paths
-
_getSortFieldSuffix
Description copied from class:AbstractModelItemSearchFieldGet the sort field suffix corresponding to this field. Return null if not sortable.- Overrides:
_getSortFieldSuffixin classStringSearchField- Returns:
- the sort field suffix. Null if not sortable.
-
getFacetField
Description copied from interface:SearchFieldGet the facet field corresponding to this field.- Specified by:
getFacetFieldin interfaceSearchField- Overrides:
getFacetFieldin classAbstractModelItemSearchField- Returns:
- The facet field.
-