Interface IndexManager
- All Known Subinterfaces:
ElasticsearchIndexManager
,LuceneIndexManager
public interface IndexManager
An index manager as viewed by Hibernate Search users.
This interface exposes all operations that Hibernate Search users should be able to execute directly on the index manager, without having to go through mapper-specific APIs.
-
Method Summary
Modifier and TypeMethodDescriptionbackend()
<T> T
Unwrap the index manager to some implementation-specific type.
-
Method Details
-
backend
Backend backend()- Returns:
- The backend in which this index manager is defined.
-
descriptor
IndexDescriptor descriptor()- Returns:
- A descriptor of this index, exposing in particular a list of field and their characteristics.
-
unwrap
Unwrap the index manager to some implementation-specific type.- Type Parameters:
T
- The expected type- Parameters:
clazz
- TheClass
representing the expected type- Returns:
- The unwrapped index manager.
- Throws:
SearchException
- if the index manager implementation does not support unwrapping to the given class.
-