public static class Query.Builder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
Query |
build()
Construct the message.
|
Query |
build(java.lang.String queryString)
Build a
Query from the query string and the parameters set on
the Query.Builder. |
Query.Builder |
setOptions(QueryOptions.Builder optionsBuilder)
Sets the query options from a builder.
|
Query.Builder |
setOptions(QueryOptions options)
Sets the query options.
|
public Query.Builder setOptions(QueryOptions options)
options - the QueryOptions to apply to the search resultspublic Query.Builder setOptions(QueryOptions.Builder optionsBuilder)
optionsBuilder - the QueryOptions.Builder build a
QueryOptions to apply to the search resultspublic Query build(java.lang.String queryString)
Query from the query string and the parameters set on
the Query.Builder. A query string can be as simple as a single term
("foo"), or as complex as a boolean expression, including field names
("title:hello OR body:important -october").queryString - the query string to parse and apply to an indexSearchQueryException - if the query string is invalidpublic Query build()
java.lang.IllegalArgumentException - if the query string is invalid