org.hibernate.search.query.dsl.PhraseContext 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;
/**
* @author Emmanuel Bernard
*/
public interface PhraseContext extends QueryCustomization {
/**
* Sets the number of other words permitted between words in query phrase.
* If zero, then this is an exact phrase search. For larger values this works
* like a WITHIN
or NEAR
operator.
*
* Defaults to 0
* @param slop the slop value
* @return a {@link PhraseContext}
*/
PhraseContext withSlop(int slop);
/**
* field / property the term query is executed on
* @param fieldName the name of the field
* @return a {@link PhraseContext}
*/
PhraseMatchingContext onField(String fieldName);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy