Skip to content

Commit

Permalink
fix(types): Updating searchoptions with explain attribute (#1415)
Browse files Browse the repository at this point in the history
* feat(client-search): Updating searchoptions type to include explain attribute

* feat(client-search): pr feedback
  • Loading branch information
cdhawke authored Jul 18, 2022
1 parent 407e949 commit c46932e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/client-search/src/types/SearchOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,4 +373,9 @@ export type SearchOptions = {
* Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection.
*/
readonly queryLanguages?: readonly string[];

/**
* Enriches the API’s response with meta-information as to how the query was processed.
*/
readonly explain?: readonly string[];
};

0 comments on commit c46932e

Please sign in to comment.