public final class FuzzyTerm extends PhraseTerm
Phrase.Parameter
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PREFIX_LENGTH
Default value for prefix length
|
static int |
DEFAULT_SIMILARITY
Default value for similarity
|
annotations, endOffset, startOffset
parameters
Constructor and Description |
---|
FuzzyTerm()
Constructor.
|
FuzzyTerm(SearchTerm term)
Constructor.
|
FuzzyTerm(String text)
Constructor.
|
FuzzyTerm(String text,
int similarity)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
FuzzyTerm |
clone() |
boolean |
containsParameters(boolean compact)
Does this phrase operand contain any parameters in a non-default state.
|
boolean |
equals(Object other) |
int |
getPrefixLength() |
int |
getSimilarity() |
String |
getText() |
int |
hashCode() |
void |
setParameter(String name,
Object value)
Set parameter
name to value . |
void |
setPrefixLength(int value) |
void |
setSimilarity(int value) |
void |
setText(String value) |
void |
toString(StringBuilder buffer,
boolean compact)
Appends the string representation of this query to
buffer . |
containsAnnotation, getAnnotations, getEndOffset, getStartOffset, offsetGap, rewriteChildren, setAnnotation, setAnnotations, setEndOffset, setStartOffset, unsetAnnotation
containsParameters, copyParameters, getBoost, getParameter, getParameter, getParameter, getParameter, getParameterInternal, isMatchAll, parameters, parseIntParameter, removeParameter, rewrite, setBoost, setParameters, toArray, toString, toString
public static final int DEFAULT_SIMILARITY
public static final int DEFAULT_PREFIX_LENGTH
public FuzzyTerm()
public FuzzyTerm(String text)
public FuzzyTerm(String text, int similarity)
public FuzzyTerm(SearchTerm term)
public String getText()
public void setText(String value)
public int getSimilarity()
public void setSimilarity(int value)
public int getPrefixLength()
public void setPrefixLength(int value)
public void setParameter(String name, Object value)
name
to value
.
NOTE: name
is case insensitive.
setParameter
in class PhraseTerm
public boolean containsParameters(boolean compact)
If compact
is true
this will only return true if at least one parameter
in the compact representation of this phrase exists.
containsParameters
in class PhraseTerm
public int hashCode()
hashCode
in class PhraseTerm
public boolean equals(Object other)
equals
in class PhraseTerm
public void toString(StringBuilder buffer, boolean compact)
buffer
.Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.