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

QueryInterpretation

import type { QueryInterpretation } from "https://googleapis.deno.dev/v1/cloudsearch:v1.ts";
interface QueryInterpretation {
interpretationType?: "NONE" | "BLEND" | "REPLACE";
interpretedQuery?: string;
interpretedQueryActualResultCount?: number;
interpretedQueryEstimatedResultCount?: bigint;
reason?: "UNSPECIFIED" | "QUERY_HAS_NATURAL_LANGUAGE_INTENT" | "NOT_ENOUGH_RESULTS_FOUND_FOR_USER_QUERY";
}

§Properties

§
interpretationType?: "NONE" | "BLEND" | "REPLACE"
[src]
§
interpretedQuery?: string
[src]

The interpretation of the query used in search. For example, queries with natural language intent like "email from john" will be interpreted as "from:john source:mail". This field will not be filled when the reason is NOT_ENOUGH_RESULTS_FOUND_FOR_USER_QUERY.

§
interpretedQueryActualResultCount?: number
[src]

The actual number of results returned by the interpreted query.

§
interpretedQueryEstimatedResultCount?: bigint
[src]

The estimated number of results returned by the interpreted query.

§
reason?: "UNSPECIFIED" | "QUERY_HAS_NATURAL_LANGUAGE_INTENT" | "NOT_ENOUGH_RESULTS_FOUND_FOR_USER_QUERY"
[src]

The reason for interpretation of the query. This field will not be UNSPECIFIED if the interpretation type is not NONE.