All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.search.FullTextSession Maven / Gradle / Ivy

There is a newer version: 3.5.6-Final
Show newest version
//$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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy