Interface ProgrammaticSearchMappingProvider

  • 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 "" 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.

    • Method Detail

      • defineMappings

        void defineMappings​(Cache cache,
        Supply some custom programmatic mappings to Hibernate Search.
        cache - the indexed cache instance
        searchMapping - the mapping object to customize