Interface ProgrammaticSearchMappingProvider

  • All Known Implementing Classes:
    DefaultSearchMappingProvider, ProgrammaticSearchMappingProviderImpl

    public interface ProgrammaticSearchMappingProvider
    An advanced SPI to be implemented by Infinispan modules that want to customize the SearchMapping object right before the bootstrap of the SearchIntegrator belonging to an indexed Cache. The SearchMapping object provided via the "hibernate.search.model_mapping" config property is used as a starting point if it was present, otherwise an empty SearchMapping 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 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 instance
        searchMapping - the mapping object to customize