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

All Implemented Interfaces:
    org.hibernate.classic.Session

All Known Implementing Classes:
    FullTextSessionImpl

Extends the Hibernate Session with Full text search and indexing capabilities
Method from org.hibernate.search.FullTextSession Summary:
createFullTextQuery,   flushToIndexes,   getSearchFactory,   index,   purge,   purgeAll
Method from org.hibernate.search.FullTextSession 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 full text changes to the index 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 the entity with the type entityType and the identifier id from the index. If id == null all indexed entities of this type and its indexed subclasses are deleted. In this case this method behaves like #purgeAll(Class) .
 public  void purgeAll(Class entityType)
    Remove all entities from of particular class and all its subclasses from the index.