public class CmsLuceneFieldConfiguration extends CmsSearchFieldConfiguration
限定符和类型 | 字段和说明 |
---|---|
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
构造器和说明 |
---|
CmsLuceneFieldConfiguration() |
限定符和类型 | 方法和说明 |
---|---|
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.
|
addAdditionalFields, addFields, appendCategories, appendContentBlob, appendDates, appendFieldMapping, appendFieldMappings, appendFields, 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 void addField(CmsSearchField field)
CmsSearchFieldConfiguration
addField
在类中 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()