Package org.ametys.cms.search.solr.field
Class AbstractMetadataSearchField
java.lang.Object
org.ametys.cms.search.solr.field.AbstractMetadataSearchField
- All Implemented Interfaces:
SearchField
- Direct Known Subclasses:
BooleanSearchField,DateSearchField,DoubleSearchField,LongSearchField,MultilingualStringSearchField,StringSearchField
Metadata (abstract) generic search field.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuild a Metadata SearchFieldprotectedAbstractMetadataSearchField(List<String> joinPaths, String finalPath) Build a Metadata SearchField -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringGet the facet field suffix corresponding to this field.protected abstract StringGet the sort field suffix corresponding to this field.Get the facet field corresponding to this field.Gets the joined pathsgetName()Get the search field name.Get the sort field corresponding to this field.booleanisJoined()Indicates if the search field is joinedMethods 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
-
Field Details
-
_joinPaths
The join paths -
_path
The field path.
-
-
Constructor Details
-
AbstractMetadataSearchField
Build a Metadata SearchField- Parameters:
path- The field path
-
AbstractMetadataSearchField
Build a Metadata SearchField- Parameters:
joinPaths- The join field pathsfinalPath- The final field path
-
-
Method Details
-
getSortField
Description copied from interface:SearchFieldGet the sort field corresponding to this field.- Specified by:
getSortFieldin interfaceSearchField- Returns:
- The sort field.
-
_getSortFieldSuffix
Get the sort field suffix corresponding to this field. Return null if not sortable.- Returns:
- the sort field suffix. Null if not sortable.
-
isJoined
Description copied from interface:SearchFieldIndicates if the search field is joined- Specified by:
isJoinedin interfaceSearchField- Returns:
trueif the search field is joined
-
getJoinedPaths
Description copied from interface:SearchFieldGets the joined paths- Specified by:
getJoinedPathsin interfaceSearchField- Returns:
- the joined paths
-
getFacetField
Description copied from interface:SearchFieldGet the facet field corresponding to this field.- Specified by:
getFacetFieldin interfaceSearchField- Returns:
- The facet field.
-
_getFacetFieldSuffix
Get the facet field suffix corresponding to this field. Return null if not facetable.- Returns:
- the facet field suffix. Null if not facetable.
-
getName
Description copied from interface:SearchFieldGet the search field name.- Specified by:
getNamein interfaceSearchField- Returns:
- The search field name.
-