- Type:
list<enum<string>>
- Default:
[]
- Scope:
settings,search
- Deprecated name:
expectedLanguages
queryLanguages
parameter defines the languages used for language-specific search behavior,
including:
- Stop word removal with
removeStopWords
- Plural and inflection normalization with
ignorePlurals
- Word segmentation and tokenization for CJK languages (Chinese, Japanese, Korean)
Usage
-
If
queryLanguages
is not set, Algolia falls back to:- The languages defined in
ignorePlurals
orremoveStopWords
- All supported languages if none are specified
- The languages defined in
-
For CJK support, the first language in the list must be
"zh"
,"ja"
, or"ko"
. This ensures correct dictionary-based segmentation. - Only include languages that are present in your content to avoid unexpected behavior.
-
To support Japanese, you must also set
"ja"
inindexLanguages
. - This setting defines the default behavior for other parameters. You can override this default per setting—for example, apply plural handling in English but stop word removal in French.
Example
Current API clients
Current API clients
Legacy API clients
Legacy API clients