public final class WildcardTerm extends PhraseTerm
Phrase.Parameter
annotations, endOffset, startOffset
parameters
Constructor and Description |
---|
WildcardTerm()
Constructor
|
WildcardTerm(SearchTerm term)
Constructor
|
WildcardTerm(String text)
Constructor
|
WildcardTerm(String text,
TokenAnnotation... annotation)
Constructor
|
WildcardTerm(String text,
TokenAnnotation annotation)
Constructor
|
Modifier and Type | Method and Description |
---|---|
WildcardTerm |
clone() |
static boolean |
containsWildcard(String text)
Check if
text contains any wildcard characters. |
boolean |
equals(Object other) |
String |
getText() |
int |
hashCode() |
boolean |
isMatchAll()
Returns
true if this phrase will match all documents. |
static boolean |
isMatchAll(String text)
Check if
text is a wildcard that matches everything. |
static WildcardTerm |
matchAll()
Create a wildcard term that matches all documents.
|
void |
setText(String value) |
void |
toString(StringBuilder buffer,
boolean compact)
Appends the string representation of this query to
buffer . |
containsAnnotation, containsParameters, getAnnotations, getEndOffset, getStartOffset, offsetGap, rewriteChildren, setAnnotation, setAnnotations, setEndOffset, setParameter, setStartOffset, unsetAnnotation
containsParameters, copyParameters, getBoost, getParameter, getParameter, getParameter, getParameter, getParameterInternal, parameters, parseIntParameter, removeParameter, rewrite, setBoost, setParameters, toArray, toString, toString
public WildcardTerm()
public WildcardTerm(String text)
public WildcardTerm(String text, TokenAnnotation annotation)
public WildcardTerm(String text, TokenAnnotation... annotation)
public WildcardTerm(SearchTerm term)
public String getText()
public void setText(String value)
public boolean isMatchAll()
true
if this phrase will match all documents.isMatchAll
in class Phrase
public WildcardTerm clone()
public int hashCode()
hashCode
in class PhraseTerm
public boolean equals(Object other)
equals
in class PhraseTerm
public void toString(StringBuilder buffer, boolean compact)
buffer
.public static WildcardTerm matchAll()
public static boolean isMatchAll(String text)
text
is a wildcard that matches everything.public static boolean containsWildcard(String text)
text
contains any wildcard characters.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.