Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 27 KB

File metadata and controls

28 lines (25 loc) · 27 KB

SearchResult

Fields

Field Type Required Description Example
structuredResults List<StructuredResult> An array of entities in the work graph retrieved via a data request.
trackingToken Optional<String> An opaque token that represents this particular result in this particular query. To be used for /feedback reporting.
document Optional<Document> N/A
title Optional<String> N/A
url String ✔️ N/A
nativeAppUrl Optional<String> A deep link, if available, into the datasource's native application for the user's platform (e.g. slack://...).
snippets List<SearchResultSnippet> Text content from the result document which contains search query terms, if available.
fullText Optional<String> The full body text of the result if not already contained in the snippets. Only populated for conversation results (e.g. results from a messaging app such as Slack).
fullTextList List<String> The full body text of the result if not already contained in the snippets; each item in the array represents a separate line in the original text. Only populated for conversation results (e.g. results from a messaging app such as Slack).
relatedResults List<RelatedDocuments> A list of results related to this search result. Eg. for conversation results it contains individual messages from the conversation document which will be shown on SERP.
clusteredResults List<SearchResult> A list of results that should be displayed as associated with this result.
allClusteredResults List<ClusterGroup> A list of results that should be displayed as associated with this result.
attachmentCount Optional<Long> The total number of attachments.
attachments List<SearchResult> A (potentially partial) list of results representing documents attached to the main result document.
backlinkResults List<SearchResult> A list of results that should be displayed as backlinks of this result in reverse chronological order.
clusterType Optional<ClusterTypeEnum> The reason for inclusion of clusteredResults.
mustIncludeSuggestions Optional<QuerySuggestionList> N/A
querySuggestion Optional<QuerySuggestion> N/A {
"query": "app:github type:pull author:mortimer",
"label": "Mortimer's PRs",
"datasource": "github"
}
prominence Optional<SearchResultProminenceEnum> The level of visual distinction that should be given to a result.
attachmentContext Optional<String> Additional context for the relationship between the result and the document it's attached to.
pins List<PinDocument> A list of pins associated with this search result.