Skip to content

Commit a3f3c6b

Browse files
authored
feat(natural-languages): adds option (#1147)
1 parent 0754ee6 commit a3f3c6b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,14 @@ export type SearchOptions = {
309309
*/
310310
readonly removeStopWords?: boolean | readonly string[];
311311

312+
/**
313+
* List of supported languages with their associated language ISO code.
314+
*
315+
* Apply a set of natural language best practices such asignorePlurals,
316+
* removeStopWords, removeWordsIfNoResults, analyticsTags and ruleContexts.
317+
*/
318+
readonly naturalLanguages?: readonly string[];
319+
312320
/**
313321
* When true, each hit in the response contains an additional _rankingInfo object.
314322
*/

0 commit comments

Comments
 (0)