org.opencms.search.fields
Class CmsSearchFieldConfigurationOldCategories

java.lang.Object
  extended by org.opencms.search.fields.CmsSearchFieldConfiguration
      extended by org.opencms.search.fields.CmsSearchFieldConfigurationOldCategories
All Implemented Interfaces:
java.lang.Comparable<CmsSearchFieldConfiguration>

public class CmsSearchFieldConfigurationOldCategories
extends 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

Field Summary
 
Fields inherited from class org.opencms.search.fields.CmsSearchFieldConfiguration
DEFAULT_STANDARD, SEARCH_PRIORITY_HIGH_VALUE, SEARCH_PRIORITY_LOW_VALUE, SEARCH_PRIORITY_MAX_VALUE, SEARCH_PRIORITY_NORMAL_VALUE, STR_STANDARD, STR_STANDARD_DESCRIPTION, VFS_DOCUMENT_KEY_PREFIX
 
Constructor Summary
CmsSearchFieldConfigurationOldCategories()
          Default constructor.
 
Method Summary
protected  org.apache.lucene.document.Document appendCategories(org.apache.lucene.document.Document document, CmsObject cms, CmsResource resource, I_CmsExtractionResult extractionResult, java.util.List<CmsProperty> properties, java.util.List<CmsProperty> propertiesSearched)
          Extends the given document by resource category information based on properties.
 
Methods inherited from class org.opencms.search.fields.CmsSearchFieldConfiguration
addField, appendContentBlob, appendDates, appendFieldMapping, appendFieldMappings, appendPath, appendType, compareTo, createDocument, equals, getAnalyzer, getDateTerms, getDescription, getExcerptFieldNames, getField, getFieldNames, getFields, getName, getParentFolderTokens, hashCode, setBoost, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsSearchFieldConfigurationOldCategories

public CmsSearchFieldConfigurationOldCategories()
Default constructor.

Method Detail

appendCategories

protected org.apache.lucene.document.Document appendCategories(org.apache.lucene.document.Document document,
                                                               CmsObject cms,
                                                               CmsResource resource,
                                                               I_CmsExtractionResult extractionResult,
                                                               java.util.List<CmsProperty> properties,
                                                               java.util.List<CmsProperty> propertiesSearched)
Extends the given document by resource category information based on properties.

Overrides:
appendCategories in class CmsSearchFieldConfiguration
Parameters:
document - the document to extend
cms - the OpenCms context used for building the search index
resource - the resource that is indexed
extractionResult - the plain text extraction result from the resource
properties - 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