@GwtCompatible public final class Search extends java.lang.Object implements Criteria
NOTE: When a structured search query syntax is supported, a parser will have extracted the parts of the
user query, and only the search text will be held in this filter object. For example, for the query
"to:john.smith TPS reports sort:subject", the query string will only hold the text "TPS reports", while
"to:john.smith" will be turned into a filter
and "sort:subject" will be turned into a
sort
.
An instance can only be obtained using com.appiancorp.common.query.QueryBuilder.SearchOp
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOCAL_PART |
static javax.xml.namespace.QName |
QNAME |
Modifier | Constructor and Description |
---|---|
protected |
Search(java.lang.String searchQuery)
Constructs a new
Search with the given search query string |
protected |
Search(java.lang.String searchQuery,
java.lang.String field) |
Modifier and Type | Method and Description |
---|---|
Criteria |
copy() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getField() |
java.lang.String |
getSearchQuery()
Returns the search query string.
|
int |
hashCode() |
java.lang.String |
toString() |
public static final java.lang.String LOCAL_PART
public static final javax.xml.namespace.QName QNAME
protected Search(java.lang.String searchQuery)
Search
with the given search query stringsearchQuery
- protected Search(java.lang.String searchQuery, java.lang.String field)
public java.lang.String getField()
public java.lang.String getSearchQuery()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.