Package org.opencms.search.fields
Class A_CmsSearchFieldConfiguration
java.lang.Object
org.opencms.search.fields.A_CmsSearchFieldConfiguration
- All Implemented Interfaces:
Serializable,Comparable<I_CmsSearchFieldConfiguration>,I_CmsSearchFieldConfiguration
- Direct Known Subclasses:
CmsSearchFieldConfiguration
public abstract class A_CmsSearchFieldConfiguration
extends Object
implements I_CmsSearchFieldConfiguration
Base class for a typical field configuration. Basically handles name and description
and provides defaults for interface methods typically not of interest for most implementations.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddField(CmsSearchField field) Adds a field to this search field configuration.voidaddUninvertingMappings(Map<String, org.apache.solr.uninverting.UninvertingReader.Type> uninvertingMap) To allow sorting on a field (without docvalues) the field must be added to the map given toUninvertingReader.wrap(org.apache.lucene.index.DirectoryReader, Map).intbooleanReturns the description of this field configuration.Returns the configuredCmsSearchFieldinstance with the given name.Returns the list of configured field names (Strings).Returns the list of configuredCmsSearchFieldinstances.getName()Returns the name of this field configuration.inthashCode()voidinit()Initializes this field configuration.voidsetDescription(String description) Sets the description of this field configuration.voidSets the name of this field configuration.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencms.search.fields.I_CmsSearchFieldConfiguration
createDocument
-
Constructor Details
-
A_CmsSearchFieldConfiguration
public A_CmsSearchFieldConfiguration()Creates a new empty field configuration.
-
-
Method Details
-
addField
Adds a field to this search field configuration.- Specified by:
addFieldin interfaceI_CmsSearchFieldConfiguration- Parameters:
field- the field to add
-
addUninvertingMappings
public void addUninvertingMappings(Map<String, org.apache.solr.uninverting.UninvertingReader.Type> uninvertingMap) Description copied from interface:I_CmsSearchFieldConfigurationTo allow sorting on a field (without docvalues) the field must be added to the map given toUninvertingReader.wrap(org.apache.lucene.index.DirectoryReader, Map). The method adds the configured fields.- Specified by:
addUninvertingMappingsin interfaceI_CmsSearchFieldConfiguration- Parameters:
uninvertingMap- the map to which the fields are added.- See Also:
-
compareTo
- Specified by:
compareToin interfaceComparable<I_CmsSearchFieldConfiguration>- See Also:
-
equals
-
getDescription
Description copied from interface:I_CmsSearchFieldConfigurationReturns the description of this field configuration.- Specified by:
getDescriptionin interfaceI_CmsSearchFieldConfiguration- Returns:
- the description of this field configuration
- See Also:
-
getField
Returns the configuredCmsSearchFieldinstance with the given name.- Parameters:
name- the search field name to look up- Returns:
- the configured
CmsSearchFieldinstance with the given name
-
getFieldNames
Returns the list of configured field names (Strings).- Returns:
- the list of configured field names (Strings)
-
getFields
Returns the list of configuredCmsSearchFieldinstances.- Specified by:
getFieldsin interfaceI_CmsSearchFieldConfiguration- Returns:
- the list of configured
CmsSearchFieldinstances
-
getName
Description copied from interface:I_CmsSearchFieldConfigurationReturns the name of this field configuration.- Specified by:
getNamein interfaceI_CmsSearchFieldConfiguration- Returns:
- the name of this field configuration
- See Also:
-
hashCode
-
init
Description copied from interface:I_CmsSearchFieldConfigurationInitializes this field configuration.- Specified by:
initin interfaceI_CmsSearchFieldConfiguration- See Also:
-
setDescription
Description copied from interface:I_CmsSearchFieldConfigurationSets the description of this field configuration.- Specified by:
setDescriptionin interfaceI_CmsSearchFieldConfiguration- Parameters:
description- the description to set- See Also:
-
setName
Description copied from interface:I_CmsSearchFieldConfigurationSets the name of this field configuration.- Specified by:
setNamein interfaceI_CmsSearchFieldConfiguration- Parameters:
name- the name to set- See Also:
-