Interface DocumentRoutes


public interface DocumentRoutes
The object passed to a RoutingBridge to define where an entity should be indexed.
  • Method Summary

    Modifier and Type
    Method
    Description
    Add a route that indexing operations for this entity should take, based on its current state.
    void
    Instructs Hibernate Search that the entity should not be indexed.
  • Method Details

    • addRoute

      DocumentRoute addRoute()
      Add a route that indexing operations for this entity should take, based on its current state.

      At the moment, only one current route can be added per indexed entity.

      Returns:
      A new route, to be defined in more details.
    • notIndexed

      void notIndexed()
      Instructs Hibernate Search that the entity should not be indexed.

      Calling this method will lead to the route being ignored.