Skip to content

Commit c46932e

Browse files
authored
fix(types): Updating searchoptions with explain attribute (#1415)
* feat(client-search): Updating searchoptions type to include explain attribute * feat(client-search): pr feedback
1 parent 407e949 commit c46932e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/client-search/src/types/SearchOptions.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,4 +373,9 @@ export type SearchOptions = {
373373
* Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection.
374374
*/
375375
readonly queryLanguages?: readonly string[];
376+
377+
/**
378+
* Enriches the API’s response with meta-information as to how the query was processed.
379+
*/
380+
readonly explain?: readonly string[];
376381
};

0 commit comments

Comments
 (0)