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

SuggestResult

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

One suggestion result.

interface SuggestResult {
peopleSuggestion?: PeopleSuggestion;
querySuggestion?: QuerySuggestion;
source?: Source;
suggestedQuery?: string;
}

§Properties

§
peopleSuggestion?: PeopleSuggestion
[src]

This is present when the suggestion indicates a person. It contains more information about the person - like their email ID, name etc.

§
querySuggestion?: QuerySuggestion
[src]

This field will be present if the suggested query is a word/phrase completion.

§
source?: Source
[src]

The source of the suggestion.

§
suggestedQuery?: string
[src]

The suggested query that will be used for search, when the user clicks on the suggestion