Package org.hibernate.search.spi
Interface SearchFactoryIntegrator
- All Superinterfaces:
SearchFactory
- All Known Subinterfaces:
SearchFactoryImplementor,SearchFactoryImplementorWithShareableState
- All Known Implementing Classes:
ImmutableSearchFactory,MutableSearchFactory
This contract is considered experimental.
This contract gives access to lower level APIs of Hibernate Search for
frameworks integrating with it. The piece of code creating the SearchFactory should
use this contract. It should however pass the higher level
SearchFactory contract to
its clients.
It also allows modification of some of the search factory internals:
- today allow addition of new indexed classes.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddClasses(Class<?>... classes) Add the following classes to the SearchFactoryvoidclose()Return an Hibernate Search query object.booleanMethods inherited from interface org.hibernate.search.SearchFactory
buildQueryBuilder, getAnalyzer, getAnalyzer, getDirectoryProviders, getReaderProvider, getStatistics, optimize, optimize
-
Method Details
-
addClasses
Add the following classes to the SearchFactory -
getWorker
Worker getWorker() -
close
void close() -
createHSQuery
HSQuery createHSQuery()Return an Hibernate Search query object. This object uses fluent APIs to define the query executed. Offers a few execution approaches: - return the list of results eagerly - return the list of results lazily - get the number of results -
isStopped
boolean isStopped()- Returns:
- true if the SearchFactory was stopped
-