Class QueryChecker (2.0.0)

public final class QueryChecker

Inheritance

java.lang.Object > QueryChecker

Static Methods

checkQuery(String query)

public static String checkQuery(String query)

Checks that query is not null and is parsable.

Parameter
Name Description
query String

the query to check

Returns
Type Description
String

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()