public class IndexedMapping extends Object
Constructor and Description |
---|
IndexedMapping(SearchMapping mapping,
EntityDescriptor entity) |
Modifier and Type | Method and Description |
---|---|
AnalyzerDefMapping |
analyzerDef(String name,
Class<? extends TokenizerFactory> tokenizerFactory) |
IndexedMapping |
analyzerDiscriminator(Class<? extends Discriminator> discriminator) |
IndexedMapping |
boost(float boost) |
IndexedMapping |
cacheFromIndex(FieldCacheType... type) |
IndexedClassBridgeMapping |
classBridge(Class<?> impl) |
IndexedClassBridgeMapping |
classBridgeInstance(FieldBridge instance)
Registers the given class bridge for the currently configured entity type.
|
IndexedMapping |
dynamicBoost(Class<? extends BoostStrategy> impl) |
EntityMapping |
entity(Class<?> entityType) |
FullTextFilterDefMapping |
fullTextFilterDef(String name,
Class<?> impl) |
IndexedMapping |
indexName(String indexName) |
IndexedMapping |
interceptor(Class<? extends EntityIndexingInterceptor> interceptor) |
PropertyMapping |
property(String name,
ElementType type) |
ProvidedIdMapping |
providedId() |
EntitySpatialMapping |
spatial() |
public IndexedMapping(SearchMapping mapping, EntityDescriptor entity)
public IndexedMapping indexName(String indexName)
public IndexedMapping interceptor(Class<? extends EntityIndexingInterceptor> interceptor)
public IndexedMapping cacheFromIndex(FieldCacheType... type)
public IndexedMapping boost(float boost)
public IndexedMapping dynamicBoost(Class<? extends BoostStrategy> impl)
public IndexedMapping analyzerDiscriminator(Class<? extends Discriminator> discriminator)
public IndexedClassBridgeMapping classBridge(Class<?> impl)
public IndexedClassBridgeMapping classBridgeInstance(FieldBridge instance)
instance
- a class bridge instanceClassBridgeMapping
following the method chaining patternSearchException
- in case the same bridge instance is passed more than once for the
currently configured entity typepublic FullTextFilterDefMapping fullTextFilterDef(String name, Class<?> impl)
public PropertyMapping property(String name, ElementType type)
public AnalyzerDefMapping analyzerDef(String name, Class<? extends TokenizerFactory> tokenizerFactory)
public EntityMapping entity(Class<?> entityType)
public ProvidedIdMapping providedId()
public EntitySpatialMapping spatial()
Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved