Class Search

java.lang.Object
org.hibernate.search.Search

@Deprecated public final class Search extends Object
Deprecated.
Use Search instead.
Helper class to get a FullTextSession from a regular ORM session.
Author:
Emmanuel Bernard, Hardy Ferentschik
  • Method Details

    • getFullTextSession

      @Deprecated public static FullTextSession getFullTextSession(org.hibernate.Session session)
      Deprecated.
      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