Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 8. Advanced features
8.1. SearchFactory Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
The
SearchFactory
object keeps track of the underlying Lucene resources for Hibernate Search, it's also a convenient way to access Lucene natively. The SearchFactory
can be accessed from a FullTextSession
:
Example 8.1. Accessing the SearchFactory
FullTextSession fullTextSession = Search.getFullTextSession(regularSession); SearchFactory searchFactory = fullTextSession.getSearchFactory();
FullTextSession fullTextSession = Search.getFullTextSession(regularSession);
SearchFactory searchFactory = fullTextSession.getSearchFactory();