@Documented @Target(TYPE) @Retention(RUNTIME) @TypeMapping(processor=@TypeMappingAnnotationProcessorRef(type=org.hibernate.search.mapper.pojo.mapping.definition.annotation.processing.impl.IndexedProcessor.class,retrieval=CONSTRUCTOR)) public @interface Indexed
Maps an entity type to an index.
  • Element Details

    • backend

      String backend
      Returns:
      The name of the backend. Defaults to the default backend.
      Default:
      ""
    • index

      String index
      Returns:
      The name of the index. Defaults to the entity name.
      Default:
      ""
    • enabled

      boolean enabled
      Returns:
      true to map the type to an index (the default), false to disable the mapping to an index. Useful to disable indexing when subclassing an indexed type.
      Default:
      true
    • routingBinder

      RoutingBinderRef routingBinder
      Returns:
      A reference to the routing binder to use to assign a routing bridge to this indexed entity.
      See Also:
      Default:
      @org.hibernate.search.mapper.pojo.bridge.mapping.annotation.RoutingBinderRef