public final class SearchRequest
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Search API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
SearchRequest() |
| Modifier and Type | Method and Description |
|---|---|
SearchRequest |
clone() |
java.util.List<DataSourceRestriction> |
getDataSourceRestrictions()
The sources to use for querying.
|
java.util.List<FacetOptions> |
getFacetOptions() |
java.lang.Integer |
getPageSize()
Maximum number of search results to return in one page.
|
java.lang.String |
getQuery()
The raw query string.
|
QueryInterpretationOptions |
getQueryInterpretationOptions()
Options to interpret the user query.
|
RequestOptions |
getRequestOptions()
Request options, such as the search application and user timezone.
|
SortOptions |
getSortOptions()
The options for sorting the search results
|
java.lang.Integer |
getStart()
Starting index of the results.
|
SearchRequest |
set(java.lang.String fieldName,
java.lang.Object value) |
SearchRequest |
setDataSourceRestrictions(java.util.List<DataSourceRestriction> dataSourceRestrictions)
The sources to use for querying.
|
SearchRequest |
setFacetOptions(java.util.List<FacetOptions> facetOptions) |
SearchRequest |
setPageSize(java.lang.Integer pageSize)
Maximum number of search results to return in one page.
|
SearchRequest |
setQuery(java.lang.String query)
The raw query string.
|
SearchRequest |
setQueryInterpretationOptions(QueryInterpretationOptions queryInterpretationOptions)
Options to interpret the user query.
|
SearchRequest |
setRequestOptions(RequestOptions requestOptions)
Request options, such as the search application and user timezone.
|
SearchRequest |
setSortOptions(SortOptions sortOptions)
The options for sorting the search results
|
SearchRequest |
setStart(java.lang.Integer start)
Starting index of the results.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.util.List<DataSourceRestriction> getDataSourceRestrictions()
null for nonepublic SearchRequest setDataSourceRestrictions(java.util.List<DataSourceRestriction> dataSourceRestrictions)
dataSourceRestrictions - dataSourceRestrictions or null for nonepublic java.util.List<FacetOptions> getFacetOptions()
null for nonepublic SearchRequest setFacetOptions(java.util.List<FacetOptions> facetOptions)
facetOptions - facetOptions or null for nonepublic java.lang.Integer getPageSize()
null for nonepublic SearchRequest setPageSize(java.lang.Integer pageSize)
pageSize - pageSize or null for nonepublic java.lang.String getQuery()
null for nonepublic SearchRequest setQuery(java.lang.String query)
query - query or null for nonepublic QueryInterpretationOptions getQueryInterpretationOptions()
null for nonepublic SearchRequest setQueryInterpretationOptions(QueryInterpretationOptions queryInterpretationOptions)
queryInterpretationOptions - queryInterpretationOptions or null for nonepublic RequestOptions getRequestOptions()
null for nonepublic SearchRequest setRequestOptions(RequestOptions requestOptions)
requestOptions - requestOptions or null for nonepublic SortOptions getSortOptions()
null for nonepublic SearchRequest setSortOptions(SortOptions sortOptions)
sortOptions - sortOptions or null for nonepublic java.lang.Integer getStart()
null for nonepublic SearchRequest setStart(java.lang.Integer start)
start - start or null for nonepublic SearchRequest set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic SearchRequest clone()
clone in class com.google.api.client.json.GenericJson