org.hibernate.search.query.dsl
Interface TermFuzzy

All Superinterfaces:
Termination<TermTermination>, TermTermination

public interface TermFuzzy
extends TermTermination

Author:
Emmanuel Bernard

Method Summary
 TermFuzzy withPrefixLength(int prefixLength)
          Size of the prefix ignored by the fuzzyness.
 TermFuzzy withThreshold(float threshold)
          Threshold above which two terms are considered similar enough.
 
Methods inherited from interface org.hibernate.search.query.dsl.Termination
createQuery
 

Method Detail

withThreshold

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


withPrefixLength

TermFuzzy 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