Package org.ametys.cms.search.solr.field
Class AbstractModelItemSearchField
java.lang.Object
org.ametys.cms.search.solr.field.AbstractModelItemSearchField
- All Implemented Interfaces:
SearchField
- Direct Known Subclasses:
BooleanSearchField
,DateSearchField
,DoubleSearchField
,LongSearchField
,MultilingualStringSearchField
,StringSearchField
Metadata (abstract) generic search field.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Build a Metadata SearchFieldprotected
AbstractModelItemSearchField
(List<String> joinPaths, String finalPath) Build a Metadata SearchField -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
Get the facet field suffix corresponding to this field.protected abstract String
Get 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.boolean
isJoined()
Indicates if the search field is joinedMethods 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
-
Field Details
-
_joinPaths
The join paths -
_path
The field path.
-
-
Constructor Details
-
AbstractModelItemSearchField
Build a Metadata SearchField- Parameters:
path
- The field path
-
AbstractModelItemSearchField
Build a Metadata SearchField- Parameters:
joinPaths
- The join field pathsfinalPath
- The final field path
-
-
Method Details
-
getSortField
Description copied from interface:SearchField
Get the sort field corresponding to this field.- Specified by:
getSortField
in 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:SearchField
Indicates if the search field is joined- Specified by:
isJoined
in interfaceSearchField
- Returns:
true
if the search field is joined
-
getJoinedPaths
Description copied from interface:SearchField
Gets the joined paths- Specified by:
getJoinedPaths
in interfaceSearchField
- Returns:
- the joined paths
-
getFacetField
Description copied from interface:SearchField
Get the facet field corresponding to this field.- Specified by:
getFacetField
in 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:SearchField
Get the search field name.- Specified by:
getName
in interfaceSearchField
- Returns:
- The search field name.
-