Package org.ametys.cms.search.solr.field
Class JoinedSystemSearchField
- java.lang.Object
-
- org.ametys.cms.search.solr.field.JoinedSystemSearchField
-
- All Implemented Interfaces:
SearchField
public class JoinedSystemSearchField extends Object implements SearchField
SearchField
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>
_joinPaths
The join pathsprotected SearchField
_refSearchField
The reference search field
-
Constructor Summary
Constructors Constructor Description JoinedSystemSearchField(List<String> joinPaths, SearchField refSearchField)
Build a JoinedSystemSearchField
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private String
_getJoinedPath()
String
getFacetField()
Get the facet field corresponding to this field.List<String>
getJoinedPaths()
Gets the joined pathsString
getName()
Get the search field name.String
getSortField()
Get the sort field corresponding to this field.boolean
isJoined()
Indicates if the search field is joined-
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
-
-
-
-
Field Detail
-
_joinPaths
protected List<String> _joinPaths
The join paths
-
_refSearchField
protected SearchField _refSearchField
The reference search field
-
-
Constructor Detail
-
JoinedSystemSearchField
public JoinedSystemSearchField(List<String> joinPaths, SearchField refSearchField)
Build a JoinedSystemSearchField- Parameters:
joinPaths
- The join field paths. Must not be null or empty.refSearchField
- The reference search field. Must not be joined.
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:SearchField
Get the search field name.- Specified by:
getName
in interfaceSearchField
- Returns:
- The search field name.
-
isJoined
public boolean 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
-
_getJoinedPath
private String _getJoinedPath()
-
getSortField
public String getSortField()
Description copied from interface:SearchField
Get the sort field corresponding to this field.- Specified by:
getSortField
in interfaceSearchField
- Returns:
- The sort field.
-
getFacetField
public String getFacetField()
Description copied from interface:SearchField
Get the facet field corresponding to this field.- Specified by:
getFacetField
in interfaceSearchField
- Returns:
- The facet field.
-
getJoinedPaths
public List<String> getJoinedPaths()
Description copied from interface:SearchField
Gets the joined paths- Specified by:
getJoinedPaths
in interfaceSearchField
- Returns:
- the joined paths
-
-