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

org.hibernate.search.query.dsl.MoreLikeThisOpenedMatchingContext Maven / Gradle / Ivy

The newest version!
/*
 * Hibernate Search, full-text search for your domain model
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later
 * See the lgpl.txt file in the root directory or .
 */

package org.hibernate.search.query.dsl;

/**
 * Represents the next step after comparingField(s).
 * Additional fields can be defined.
 *
 * @author Emmanuel Bernard <[email protected]>
 */
public interface MoreLikeThisOpenedMatchingContext extends MoreLikeThisMatchingContext, FieldCustomization {

	/**
	 * Add one field to the fields selected to match the content.
	 *
	 * An exception is thrown if the field are neither storing the term vectors nor physically stored.
	 *
	 * We highly recommend to store the term vectors if you plan on using More Like This queries.
	 * @param fieldname the name of the field
	 * @return {@code this} for method chaining
	 */
	MoreLikeThisOpenedMatchingContext andField(String fieldname);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy