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
NameDescription
queryString

the query to check

Returns
TypeDescription
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
NameDescription
paramscom.google.appengine.api.search.proto.SearchServicePb.SearchParams

the SearchParams to check

Returns
TypeDescription
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
NameDescription
paramscom.google.appengine.api.search.proto.SearchServicePb.SearchParams

the search parameters to check

Returns
TypeDescription
com.google.appengine.api.search.proto.SearchServicePb.SearchParams

this checked SearchParams

Constructors

QueryChecker()

public QueryChecker()