org.hibernate.search.query.dsl
Interface PhraseContext

All Superinterfaces:
QueryCustomization<PhraseContext>

public interface PhraseContext
extends QueryCustomization<PhraseContext>

Author:
Emmanuel Bernard

Method Summary
 PhraseMatchingContext onField(String fieldName)
          field / property the term query is executed on
 PhraseContext withSlop(int slop)
          Sets the number of other words permitted between words in query phrase.
 
Methods inherited from interface org.hibernate.search.query.dsl.QueryCustomization
boostedTo, filteredBy, withConstantScore
 

Method Detail

withSlop

PhraseContext withSlop(int slop)
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


onField

PhraseMatchingContext onField(String fieldName)
field / property the term query is executed on



Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved