|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.mapping.osem.builder.SearchableConstantMappingBuilder
public class SearchableConstantMappingBuilder
A constant meta-data that can be defined on a SearchableMappingBuilder class.
A constant meta-data is a predefined name and value pair that will be saved in the search engine index.
OSEM.constant(String),
SearchableMappingBuilder.add(SearchableConstantMappingBuilder)| Field Summary | |
|---|---|
(package private) ConstantMetaDataMapping |
mapping
|
| Constructor Summary | |
|---|---|
SearchableConstantMappingBuilder(String name)
Constructs a new constant metda data with the specified name. |
|
| Method Summary | |
|---|---|
SearchableConstantMappingBuilder |
analyzer(String analyzer)
Sets the analyzer logical name that will be used to analyzer the property value. |
SearchableConstantMappingBuilder |
boost(float boost)
Sets the boost value for the property mapping. |
SearchableConstantMappingBuilder |
excludeFromAll(ExcludeFromAll excludeFromAll)
Controls if the property will be excluded from all or not. |
SearchableConstantMappingBuilder |
index(Property.Index index)
Specifies whether and how a property should be indexed. |
SearchableConstantMappingBuilder |
nullValue(String nullValue)
Sets the null value of the property. |
SearchableConstantMappingBuilder |
omitNorms(boolean omitNorms)
If set, omit normalization factors associated with this indexed field. |
SearchableConstantMappingBuilder |
omitTf(boolean omitTf)
If set, omit tf from postings of this indexed property. |
SearchableConstantMappingBuilder |
overrideByName(boolean override)
Sets if this mapping will override another mapping with the same name. |
SearchableConstantMappingBuilder |
spellCheck(SpellCheck spellCheck)
Sets the spell check specific setting for the mapping. |
SearchableConstantMappingBuilder |
store(Property.Store store)
Specifies whether and how a property will be stored. |
SearchableConstantMappingBuilder |
termVector(Property.TermVector termVector)
Specifies whether and how a property should have term vectors. |
SearchableConstantMappingBuilder |
values(String... values)
A list of values that the meta-data will have. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final ConstantMetaDataMapping mapping
| Constructor Detail |
|---|
public SearchableConstantMappingBuilder(String name)
| Method Detail |
|---|
public SearchableConstantMappingBuilder values(String... values)
public SearchableConstantMappingBuilder store(Property.Store store)
Property.Store.YES.
public SearchableConstantMappingBuilder index(Property.Index index)
Property.Index.ANALYZED.
public SearchableConstantMappingBuilder termVector(Property.TermVector termVector)
Property.TermVector.NO.
public SearchableConstantMappingBuilder omitNorms(boolean omitNorms)
false.
public SearchableConstantMappingBuilder omitTf(boolean omitTf)
false.
public SearchableConstantMappingBuilder boost(float boost)
1.0f.
public SearchableConstantMappingBuilder excludeFromAll(ExcludeFromAll excludeFromAll)
public SearchableConstantMappingBuilder overrideByName(boolean override)
true.
public SearchableConstantMappingBuilder analyzer(String analyzer)
public SearchableConstantMappingBuilder nullValue(String nullValue)
public SearchableConstantMappingBuilder spellCheck(SpellCheck spellCheck)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||