Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SearchRequest

import type { SearchRequest } from "https://googleapis.deno.dev/v1/cloudsearch:v1.ts";

The search API request.

interface SearchRequest {
contextAttributes?: ContextAttribute[];
dataSourceRestrictions?: DataSourceRestriction[];
facetOptions?: FacetOptions[];
pageSize?: number;
query?: string;
queryInterpretationOptions?: QueryInterpretationOptions;
requestOptions?: RequestOptions;
sortOptions?: SortOptions;
start?: number;
}

§Properties

§
contextAttributes?: ContextAttribute[]
[src]

Context attributes for the request which will be used to adjust ranking of search results. The maximum number of elements is 10.

§
dataSourceRestrictions?: DataSourceRestriction[]
[src]

The sources to use for querying. If not specified, all data sources from the current search application are used.

§
facetOptions?: FacetOptions[]
[src]
§
pageSize?: number
[src]

Maximum number of search results to return in one page. Valid values are between 1 and 100, inclusive. Default value is 10. Minimum value is 50 when results beyond 2000 are requested.

§
query?: string
[src]

The raw query string. See supported search operators in the Narrow your search with operators

§
queryInterpretationOptions?: QueryInterpretationOptions
[src]

Options to interpret the user query.

§
requestOptions?: RequestOptions
[src]

Request options, such as the search application and user timezone.

§
sortOptions?: SortOptions
[src]

The options for sorting the search results

§
start?: number
[src]

Starting index of the results.