org.hibernate.search.jpa

## Class Search

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

-     public final class Search
      extends Object

  Helper class that should be used when building a FullTextEntityManager
  Author:
    Emmanuel Bernard, Hardy Ferentschik

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static FullTextEntityManager` | `getFullTextEntityManager(javax.persistence.EntityManager em)` Build a full text capable EntityManager The underlying EM implementation has to be Hibernate EntityManager The created instance depends on the passed Session: closing either of them will close both instances.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getFullTextEntityManager

          public static FullTextEntityManager getFullTextEntityManager(javax.persistence.EntityManager em)

      Build a full text capable EntityManager The underlying EM implementation has to be Hibernate EntityManager The created instance depends on the passed Session: closing either of them will close both instances. They both share the same persistence context.
      Parameters:
        `em` - the entityManager instance to use
      Returns:
        a FullTextEntityManager, wrapping the passed EntityManager
      Throws:
        `IllegalArgumentException` - if passed null

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved