org.hibernate.search.cfg
Class IndexedMapping

java.lang.Object
  extended by org.hibernate.search.cfg.IndexedMapping

public class IndexedMapping
extends Object


Constructor Summary
IndexedMapping(SearchMapping mapping, EntityDescriptor entity)
           
 
Method Summary
 AnalyzerDefMapping analyzerDef(String name, Class<? extends org.apache.solr.analysis.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()
           
 IndexedMapping similarity(Class<?> impl)
           
 EntitySpatialMapping spatial()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexedMapping

public IndexedMapping(SearchMapping mapping,
                      EntityDescriptor entity)
Method Detail

indexName

public IndexedMapping indexName(String indexName)

interceptor

public IndexedMapping interceptor(Class<? extends EntityIndexingInterceptor> interceptor)

cacheFromIndex

public IndexedMapping cacheFromIndex(FieldCacheType... type)

similarity

public IndexedMapping similarity(Class<?> impl)

boost

public IndexedMapping boost(float boost)

dynamicBoost

public IndexedMapping dynamicBoost(Class<? extends BoostStrategy> impl)

analyzerDiscriminator

public IndexedMapping analyzerDiscriminator(Class<? extends Discriminator> discriminator)

classBridge

public IndexedClassBridgeMapping classBridge(Class<?> impl)

classBridgeInstance

public IndexedClassBridgeMapping classBridgeInstance(FieldBridge instance)
Registers the given class bridge for the currently configured entity type. Any subsequent analyzer, parameter etc. configurations apply to this class bridge.

Parameters:
instance - a class bridge instance
Returns:
a new ClassBridgeMapping following the method chaining pattern
Throws:
SearchException - in case the same bridge instance is passed more than once for the currently configured entity type

fullTextFilterDef

public FullTextFilterDefMapping fullTextFilterDef(String name,
                                                  Class<?> impl)

property

public PropertyMapping property(String name,
                                ElementType type)

analyzerDef

public AnalyzerDefMapping analyzerDef(String name,
                                      Class<? extends org.apache.solr.analysis.TokenizerFactory> tokenizerFactory)

entity

public EntityMapping entity(Class<?> entityType)

providedId

public ProvidedIdMapping providedId()

spatial

public EntitySpatialMapping spatial()


Copyright © 2006–2013 Hibernate. All rights reserved.