public class CmsLuceneFieldConfiguration extends CmsSearchFieldConfiguration
Modifier and Type | Field and Description |
---|---|
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.
|
LAZY_FIELDS, STR_STANDARD
Constructor and Description |
---|
CmsLuceneFieldConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
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.Set<java.lang.String> |
getExcerptFields()
Returns the field names used for the excerpt generation.
|
java.util.List<CmsLuceneField> |
getLuceneFields()
Returns a list of the concrete Lucene search fields.
|
java.util.Set<java.lang.String> |
getReturnFields()
Returns the field names used for a regular result.
|
addFields, addUninvertingMappings, appendAdditionalValuesToDcoument, 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
public static final CmsLuceneFieldConfiguration DEFAULT_STANDARD
This defines the default that is used in case no "standard" field configuration
is defined in opencms-search.xml
.
public static final java.lang.String STR_STANDARD_DESCRIPTION
public CmsLuceneFieldConfiguration()
public void addField(CmsSearchField field)
CmsSearchFieldConfiguration
addField
in class CmsSearchFieldConfiguration
field
- the field to addCmsSearchFieldConfiguration.addField(org.opencms.search.fields.CmsSearchField)
public org.apache.lucene.analysis.Analyzer getAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
analyzer
- the base analyzer to wrappublic java.util.List<java.lang.String> getExcerptFieldNames()
public java.util.Set<java.lang.String> getExcerptFields()
public java.util.List<CmsLuceneField> getLuceneFields()
public java.util.Set<java.lang.String> getReturnFields()