public class ContentSearchField extends StringSearchField
Modifier and Type | Field and Description |
---|---|
private Optional<Context> |
_context |
private boolean |
_isMultilingual |
_joinPaths, _path
Constructor and Description |
---|
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.
|
ContentSearchField(String path)
Build a content search field.
|
ContentSearchField(String path,
boolean isMultilingual,
Optional<Context> context)
Build a content search field.
|
Modifier and Type | Method and Description |
---|---|
private String |
_getMultilingualSortFieldSuffix() |
protected String |
_getSortFieldSuffix()
Get the sort field suffix corresponding to this field.
|
String |
getFacetField()
Get the facet field corresponding to this field.
|
List<String> |
getJoinedPaths()
Gets the joined paths
|
_getFacetFieldSuffix
getName, getSortField, isJoined
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFacetFunction
private boolean _isMultilingual
public ContentSearchField(String path)
path
- The field path.public ContentSearchField(List<String> joinPaths, String finalPath)
joinPaths
- The join field pathsfinalPath
- The final field path.public ContentSearchField(String path, boolean isMultilingual, Optional<Context> context)
path
- The field path.isMultilingual
- true
if the Content has a multlilingual titlecontext
- The contextpublic ContentSearchField(List<String> joinPaths, String finalPath, boolean isMultilingual, Optional<Context> context)
joinPaths
- The join field pathsfinalPath
- The final field path.isMultilingual
- true
if the Content has a multilingual titlecontext
- The contextpublic List<String> getJoinedPaths()
SearchField
getJoinedPaths
in interface SearchField
getJoinedPaths
in class AbstractMetadataSearchField
protected String _getSortFieldSuffix()
AbstractMetadataSearchField
_getSortFieldSuffix
in class StringSearchField
private String _getMultilingualSortFieldSuffix()
public String getFacetField()
SearchField
getFacetField
in interface SearchField
getFacetField
in class AbstractMetadataSearchField