Save This Page
Home » hibernate-search-src-20081106 » org.hibernate » search » jpa » [javadoc | source]
org.hibernate.search.jpa
public interface: FullTextEntityManager [javadoc | source]

All Implemented Interfaces:
    javax.persistence.EntityManager

All Known Implementing Classes:
    FullTextEntityManagerImpl

Extends an EntityManager with Full-Text operations
Method from org.hibernate.search.jpa.FullTextEntityManager Summary:
createFullTextQuery,   flushToIndexes,   getSearchFactory,   index,   purge,   purgeAll
Method from org.hibernate.search.jpa.FullTextEntityManager Detail:
 public FullTextQuery createFullTextQuery(Query luceneQuery,
    Class entities)
    Create a Query on top of a native Lucene Query returning the matching objects of type entities and their respective subclasses. If no entity is provided, no type filtering is done.
 public  void flushToIndexes()
    flush index change Force Hibernate Search to apply all changes to the index no waiting for the batch limit
 public SearchFactory getSearchFactory()
    return the SearchFactory
 public  void index(Object entity)
    Force the (re)indexing of a given managed object. Indexation is batched per transaction: if a transaction is active, the operation will not affect the index at least until commit.
 public  void purge(Class entityType,
    Serializable id)
    Remove a particular entity from a particular class of an index.
 public  void purgeAll(Class entityType)
    Remove all entities from a particular class of an index.