org.opencms.search.fields
Class CmsLuceneFieldConfiguration

java.lang.Object
  extended by org.opencms.search.fields.CmsSearchFieldConfiguration
      extended by org.opencms.search.fields.CmsLuceneFieldConfiguration
All Implemented Interfaces:
java.lang.Comparable<CmsSearchFieldConfiguration>
Direct Known Subclasses:
CmsGallerySearchFieldConfiguration, CmsSearchFieldConfigurationOldCategories

public class CmsLuceneFieldConfiguration
extends CmsSearchFieldConfiguration

Describes a configuration of fields that are used in building a search index.

Since:
7.0.0

Field Summary
static CmsLuceneFieldConfiguration DEFAULT_STANDARD
          The default for the standard search configuration.
static java.lang.String STR_STANDARD_DESCRIPTION
          The description for the standard field configuration.
 
Fields inherited from class org.opencms.search.fields.CmsSearchFieldConfiguration
STR_STANDARD
 
Constructor Summary
CmsLuceneFieldConfiguration()
           
 
Method Summary
 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.
 java.util.List<java.lang.String> getExcerptFieldNames()
          Returns a list of all field names (Strings) that are used in generating the search excerpt.
 java.util.List<CmsLuceneField> getLuceneFields()
          Returns a list of the concrete Lucene search fields.
 
Methods inherited from class org.opencms.search.fields.CmsSearchFieldConfiguration
addField, addFields, appendCategories, appendContentBlob, appendDates, appendFieldMapping, appendFieldMappings, appendFileSize, appendLocales, appendPath, appendProperties, appendType, compareTo, createDocument, equals, getDescription, getField, getFieldNames, getFields, getIndex, getLocaleExtendedName, getLocaleExtendedName, getName, getParentFolderTokens, hashCode, init, setBoost, setDescription, setIndex, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_STANDARD

public static final CmsLuceneFieldConfiguration 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

public static final java.lang.String STR_STANDARD_DESCRIPTION
The description for the standard field configuration.

See Also:
Constant Field Values
Constructor Detail

CmsLuceneFieldConfiguration

public CmsLuceneFieldConfiguration()
Method Detail

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

public java.util.List<java.lang.String> 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

getLuceneFields

public java.util.List<CmsLuceneField> getLuceneFields()
Returns a list of the concrete Lucene search fields.

Returns:
a list of lucene search fields