Package org.hibernate.search
Class Search
java.lang.Object
org.hibernate.search.Search
Deprecated.
Helper class to get a
FullTextSession from a regular ORM session.- Author:
- Emmanuel Bernard, Hardy Ferentschik
-
Method Summary
Modifier and TypeMethodDescriptionstatic FullTextSessiongetFullTextSession(org.hibernate.Session session) Deprecated.UseSearch.session(Session)instead.
-
Method Details
-
getFullTextSession
Deprecated.UseSearch.session(Session)instead.Creates a FullTextSession from a regular Session. The created instance depends on the passed Session: closing either of them will close both instances. They both share the same persistence context.- Parameters:
session- the hibernate ORM session- Returns:
- the new FullTextSession, based on the passed Session
- Throws:
IllegalArgumentException- if passed null
-
Searchinstead.