Package org.opencms.search.fields
Class CmsSearchFieldConfigurationOldCategories
java.lang.Object
org.opencms.search.fields.A_CmsSearchFieldConfiguration
org.opencms.search.fields.CmsSearchFieldConfiguration
org.opencms.search.fields.CmsLuceneFieldConfiguration
org.opencms.search.fields.CmsSearchFieldConfigurationOldCategories
- All Implemented Interfaces:
Serializable
,Comparable<I_CmsSearchFieldConfiguration>
,I_CmsSearchFieldConfiguration
Describes a field configuration using the old (pre 8.0) logic for categories that depend on properties.
Configure this class for a search index field configuration in case you want the old behavior.
- Since:
- 8.0.0
- See Also:
-
Field Summary
Fields inherited from class org.opencms.search.fields.CmsLuceneFieldConfiguration
DEFAULT_STANDARD, STR_STANDARD_DESCRIPTION
Fields inherited from class org.opencms.search.fields.CmsSearchFieldConfiguration
LAZY_FIELDS, STR_STANDARD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected I_CmsSearchDocument
appendCategories
(I_CmsSearchDocument document, CmsObject cms, CmsResource resource, I_CmsExtractionResult extractionResult, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) Extends the given document by resource category information based on properties.Methods inherited from class org.opencms.search.fields.CmsLuceneFieldConfiguration
addField, getAnalyzer, getExcerptFieldNames, getExcerptFields, getLuceneFields, getReturnFields
Methods inherited from class org.opencms.search.fields.CmsSearchFieldConfiguration
addUninvertingMappings, appendAdditionalValuesToDcoument, 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
-
Constructor Details
-
CmsSearchFieldConfigurationOldCategories
Default constructor.
-
-
Method Details
-
appendCategories
protected I_CmsSearchDocument appendCategories(I_CmsSearchDocument document, CmsObject cms, CmsResource resource, I_CmsExtractionResult extractionResult, List<CmsProperty> properties, List<CmsProperty> propertiesSearched) Extends the given document by resource category information based on properties.- Overrides:
appendCategories
in classCmsSearchFieldConfiguration
- Parameters:
document
- the document to extendcms
- the OpenCms context used for building the search indexresource
- the resource that is indexedextractionResult
- the plain text extraction result from the resourceproperties
- the list of all properties directly attached to the resource (not searched)propertiesSearched
- the list of all searched properties of the resource- Returns:
- the document extended by resource category information
- See Also:
-