# Class QueryChecker (5.0.3)

    public final class QueryChecker

Checks values of [com.google.appengine.api.search.Query](https://docs.cloud.google.com/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.Query(class)).

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> QueryChecker

## Inherited Members

[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Static Methods

### checkQuery(String query)

    public static String checkQuery(String query)

Checks that query is not null and is parsable.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `query` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` the query to check |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | the checked query |

### checkValid(SearchServicePb.SearchParams params)

    public static SearchServicePb.SearchParams checkValid(SearchServicePb.SearchParams params)

Checks the search specification is valid, specifically, has a valid
index specification, a non-null query, a non-null number of documents
to return specification, a valid cursor if present, valid sort
specification list, a valid collection of field names for sorting,
and a valid scorer specification.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `params` | `com.google.appengine.api.search.proto.SearchServicePb.SearchParams` the SearchParams to check |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.appengine.api.search.proto.SearchServicePb.SearchParams` | this checked SearchParams |

### checkValidFast(SearchServicePb.SearchParams params)

    public static SearchServicePb.SearchParams checkValidFast(SearchServicePb.SearchParams params)

Performs a fast check of the search parameters. This method does not
check if the query stored in the parameters parses.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `params` | `com.google.appengine.api.search.proto.SearchServicePb.SearchParams` the search parameters to check |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.appengine.api.search.proto.SearchServicePb.SearchParams` | this checked SearchParams |

## Constructors

### QueryChecker()

    public QueryChecker()