Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 14.1 KB

File metadata and controls

20 lines (17 loc) · 14.1 KB

SearchResponseMetadata

Fields

Field Type Required Description Example
rewritten_query Optional[str] A cleaned up or updated version of the query to be displayed in the query box. Useful for mapping visual facets to search operators.
searched_query Optional[str] The actual query used to perform search and return results.
searched_query_without_negation Optional[str] The query used to perform search and return results, with negated terms and facets removed.
searched_query_ranges List[models.TextRange] The bolded ranges within the searched query.
original_query Optional[str] The query text sent by the client in the request.
query_suggestion Optional[models.QuerySuggestion] N/A {
"query": "app:github type:pull author:mortimer",
"label": "Mortimer's PRs",
"datasource": "github"
}
additional_query_suggestions Optional[models.QuerySuggestionList] N/A
negated_terms List[str] A list of terms that were negated when processing the query.
modified_query_was_used Optional[bool] A different query was performed than the one requested.
original_query_had_no_results Optional[bool] No results were found for the original query. The usage of this bit in conjunction with modifiedQueryWasUsed will dictate whether the full page replacement is 0-result or few-result based.
search_warning Optional[models.SearchWarning] N/A
triggered_expert_detection Optional[bool] Whether the query triggered expert detection results in the People tab.
is_no_quotes_suggestion Optional[bool] Whether the query was modified to remove quotes