This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
LanguageCode Criterion¶
The LanguageCode
Search Criterion searches for content based on whether it's translated into the selected language.
Arguments¶
value
- string(s) representing the language codes to search for- (optional)
matchAlwaysAvailable
- bool representing whether content with thealwaysAvailable
flag should be returned even if it doesn't contain the selected language (defaulttrue
)
Limitations¶
LanguageCode
can be used on all search engines.
Example¶
PHP¶
1 |
|
REST API¶
1 2 3 4 5 |
|
1 2 3 4 5 6 7 8 9 10 |
|
Use case¶
You can use the LanguageCode
Criterion to search for articles that are lacking a translation
into a specific language:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|