org.hibernate.search.FullTextSession Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-annotations
Show all versions of hibernate-annotations
Annotations metadata for Hibernate
//$Id: $
package org.hibernate.search;
import org.hibernate.classic.Session;
import org.hibernate.Query;
/**
* Extends the Hibernate {@link Session} with Full text search and indexing capabilities
*
* @author Emmanuel Bernard
*/
public interface FullTextSession extends Session {
/**
* 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.
*/
Query createFullTextQuery(org.apache.lucene.search.Query luceneQuery, Class... entities);
/**
* Force the (re)indexing of a given managed object.
* Indexation is batched per transaction
*/
void index(Object entity);
}