org.hibernate.search.query.dsl.MoreLikeThisOpenedMatchingContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-search-engine Show documentation
Show all versions of hibernate-search-engine Show documentation
Core of the Object/Lucene mapper, query engine and index management
/*
* 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