Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 14.6 KB

File metadata and controls

16 lines (13 loc) · 14.6 KB

QuerySuggestion

Fields

Field Type Required Description Example
missing_term Optional[str] A query term missing from the original query on which this suggestion is based.
query str ✔️ The query being suggested (e.g. enforcing the missing term from the original query).
search_provider_info Optional[models.SearchProviderInfo] N/A {
"name": "Google",
"logo": "https://app.glean.com/images/feather/globe.svg",
"searchLinkUrlTemplate": "https://www.google.com/search?q={query}\u0026hl=en"
}
label Optional[str] A user-facing description to display for the suggestion.
datasource Optional[str] The datasource associated with the suggestion.
result_tab Optional[models.ResultTab] N/A
request_options Optional[models.SearchRequestOptions] N/A {
"datasourceFilter": "JIRA",
"datasourcesFilter": [
"JIRA"
],
"queryOverridesFacetFilters": true,
"facetFilters": [
{
"fieldName": "fieldName",
"values": [
"fieldValues",
"fieldValues"
]
},
{
"fieldName": "fieldName",
"values": [
"fieldValues",
"fieldValues"
]
}
]
}
ranges List[models.TextRange] The bolded ranges within the query of the QuerySuggestion.
input_details Optional[models.SearchRequestInputDetails] N/A {
"hasCopyPaste": true
}