org.hibernate.search.query.dsl
Interface FuzzyContext

All Superinterfaces:
QueryCustomization<FuzzyContext>

public interface FuzzyContext
extends QueryCustomization<FuzzyContext>

Author:
Emmanuel Bernard

Method Summary
 TermMatchingContext onField(String field)
          field / property the term query is executed on
 TermMatchingContext onFields(String... fields)
          fields / properties the term query is executed on
 FuzzyContext withPrefixLength(int prefixLength)
          Size of the prefix ignored by the fuzzyness.
 FuzzyContext withThreshold(float threshold)
          Threshold above which two terms are considered similar enough.
 
Methods inherited from interface org.hibernate.search.query.dsl.QueryCustomization
boostedTo, filteredBy, withConstantScore
 

Method Detail

onField

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


onFields

TermMatchingContext onFields(String... fields)
fields / properties the term query is executed on


withThreshold

FuzzyContext withThreshold(float threshold)
Threshold above which two terms are considered similar enough. Value between 0 and 1 (1 excluded) Defaults to .5


withPrefixLength

FuzzyContext withPrefixLength(int prefixLength)
Size of the prefix ignored by the fuzzyness. A non zero value is recommended if the index contains a huge amount of distinct terms Defaults to 0



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