Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.google.appengine.api.search
Class Query.Builder

    java.lang.Object
      com.google.appengine.api.search.Query.Builder

Enclosing class:
  Query

    public static class Query.Builder

extends java.lang.Object

A builder which constructs Query objects.

Method Summary
`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 options)` Sets the query options.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### setOptions

    public Query.Builder setOptions(QueryOptions options)

  Sets the query options.

  Parameters:
    `options` - the `QueryOptions` to apply to the search results
  Returns:
    this builder

### build

    public Query build(java.lang.String queryString)

  Build a `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").

  Parameters:
    `queryString` - the query string to parse and apply to an index
  Returns:
    the Query built from the parameters entered on this Builder including the queryString
  Throws:
    `SearchQueryException` - if the query string is invalid

### build

    public Query build()

  Construct the message.

  Returns:
    the Query built from the parameters entered on this Builder
  Throws:
    `java.lang.IllegalArgumentException` - if the query string is invalid

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD