Package org.opencms.search.fields
Class CmsLuceneFieldConfiguration
java.lang.Object
org.opencms.search.fields.A_CmsSearchFieldConfiguration
org.opencms.search.fields.CmsSearchFieldConfiguration
org.opencms.search.fields.CmsLuceneFieldConfiguration
- All Implemented Interfaces:
Serializable
,Comparable<I_CmsSearchFieldConfiguration>
,I_CmsSearchFieldConfiguration
- Direct Known Subclasses:
CmsSearchFieldConfigurationOldCategories
Describes a configuration of fields that are used in building a search index.
- Since:
- 7.0.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CmsLuceneFieldConfiguration
The default for the standard search configuration.static final String
The description for the standard field configuration.Fields inherited from class org.opencms.search.fields.CmsSearchFieldConfiguration
LAZY_FIELDS, STR_STANDARD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addField
(CmsSearchField field) Adds a field to this search field configuration.org.apache.lucene.analysis.Analyzer
getAnalyzer
(org.apache.lucene.analysis.Analyzer analyzer) Returns an analyzer that wraps the given base analyzer with the analyzers of this individual field configuration.Returns a list of all field names (Strings) that are used in generating the search excerpt.Returns the field names used for the excerpt generation.Returns a list of the concrete Lucene search fields.Returns the field names used for a regular result.Methods inherited from class org.opencms.search.fields.CmsSearchFieldConfiguration
addUninvertingMappings, appendAdditionalValuesToDcoument, appendCategories, appendContentBlob, appendDates, appendFieldMapping, appendFieldMappings, appendFileSize, appendLocales, appendPath, appendProperties, appendType, createDocument, getIndex, getLocaleExtendedName, getLocaleExtendedName, getParentFolderTokens, setIndex
Methods inherited from class org.opencms.search.fields.A_CmsSearchFieldConfiguration
compareTo, equals, getDescription, getField, getFieldNames, getFields, getName, hashCode, init, setDescription, setName
-
Field Details
-
DEFAULT_STANDARD
The default for the standard search configuration.This defines the default that is used in case no "standard" field configuration is defined in
opencms-search.xml
. -
STR_STANDARD_DESCRIPTION
The description for the standard field configuration.- See Also:
-
-
Constructor Details
-
CmsLuceneFieldConfiguration
public CmsLuceneFieldConfiguration()
-
-
Method Details
-
addField
Description copied from class:A_CmsSearchFieldConfiguration
Adds a field to this search field configuration.- Specified by:
addField
in interfaceI_CmsSearchFieldConfiguration
- Overrides:
addField
in classA_CmsSearchFieldConfiguration
- Parameters:
field
- the field to add- See Also:
-
getAnalyzer
public org.apache.lucene.analysis.Analyzer getAnalyzer(org.apache.lucene.analysis.Analyzer analyzer) Returns an analyzer that wraps the given base analyzer with the analyzers of this individual field configuration.- Parameters:
analyzer
- the base analyzer to wrap- Returns:
- an analyzer that wraps the given base analyzer with the analyzers of this individual field configuration
-
getExcerptFieldNames
Returns a list of all field names (Strings) that are used in generating the search excerpt.- Returns:
- a list of all field names (Strings) that are used in generating the search excerpt
-
getExcerptFields
Returns the field names used for the excerpt generation.- Returns:
- the field names used for the excerpt generation
-
getLuceneFields
Returns a list of the concrete Lucene search fields.- Returns:
- a list of lucene search fields
-
getReturnFields
Returns the field names used for a regular result.- Returns:
- the field names used for a regular result
-