From 61c2976f9c94c7ff80a51d6e9d585a40c0ed9d32 Mon Sep 17 00:00:00 2001 From: Haroen Viaene Date: Tue, 17 May 2022 17:57:56 +0200 Subject: [PATCH] feat(search): add type for queryLanguages (#1406) According to https://www.algolia.com/doc/api-reference/api-parameters/queryLanguages/?client=javascript, it can be sent as a search parameter too. fixes #1405 --- packages/client-search/src/types/SearchOptions.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/client-search/src/types/SearchOptions.ts b/packages/client-search/src/types/SearchOptions.ts index 1b28be7be..e2f47a26f 100644 --- a/packages/client-search/src/types/SearchOptions.ts +++ b/packages/client-search/src/types/SearchOptions.ts @@ -368,4 +368,9 @@ export type SearchOptions = { | readonly string[] | ReadonlyArray | null; + + /** + * Sets the languages to be used by language-specific settings and functionalities such as ignorePlurals, removeStopWords, and CJK word-detection. + */ + readonly queryLanguages?: readonly string[]; };