Package org.infinispan.query.spi
Interface ProgrammaticSearchMappingProvider
-
public interface ProgrammaticSearchMappingProvider
An advanced SPI to be implemented by Infinispan modules that want to customize theSearchMapping
object right before the bootstrap of theSearchIntegrator
belonging to an indexedCache
. TheSearchMapping
object provided via the "hibernate.search.model_mapping" config property is used as a starting point if it was present, otherwise an emptySearchMapping
is used.Please note that in case multiple providers are found in classpath the order of invocation is not predictable so implementations must be careful not to step on each others toes.
- Since:
- 6.0
- Author:
- anistor@redhat.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
defineMappings(Cache cache, org.hibernate.search.cfg.SearchMapping searchMapping)
Supply some custom programmatic mappings to Hibernate Search.
-
-
-
Method Detail
-
defineMappings
void defineMappings(Cache cache, org.hibernate.search.cfg.SearchMapping searchMapping)
Supply some custom programmatic mappings to Hibernate Search.- Parameters:
cache
- the indexed cache instancesearchMapping
- the mapping object to customize
-
-