Interface PojoRoutingIndexingDependencyConfigurationContext

  • public interface PojoRoutingIndexingDependencyConfigurationContext
    • Method Detail

      • useRootOnly

        void useRootOnly()
        Declare that the bridge will only use the indexed entity directly, and will not access any mutable property.

        This is generally called for bridges that rely exclusively on the identifier for routing.

        Note that calling this method prevents from declaring any other dependency, and trying to do so will trigger an exception.

      • use

        PojoRoutingIndexingDependencyConfigurationContext use​(PojoModelPathValueNode pathFromEntityTypeToUsedValue)
        Declare that the given path is read by the bridge at indexing time to route the indexed document.

        Every component of this path will be considered as a dependency, so it is not necessary to call this method for every subpath. In other words, if the path "myProperty.someOtherProperty" is declared as used, Hibernate Search will automatically assume that "myProperty" is also used.

        pathFromEntityTypeToUsedValue - The path from the indexed entity type to the value used by the bridge.
        this, for method chaining.
        SearchException - If the given path cannot be applied to the indexed entity type.