So setting strictlanguage in the current implementation means that fallbacks will not be used during search. This is documented in api.php as "strictlanguage: Whether to disable language fallback" Note: this only applies for the search itself, not for the displaying of terms (see below)
Qid matches are still returned with strictlanguage.
The terms displayed in the result (label & description keys) are displayed in the userlanguage. This can be altered in the API by setting uselang=LANG This still uses language fallback in the case strictlanguage is set
The match displayed in the result is the thing that has actually been matched by the search. The type can be label, or entityId for example and the text is then the value.
I hope this helps.
Addshore
On Thu, 16 Feb 2017 at 21:28 Stas Malyshev smalyshev@wikimedia.org wrote:
Hi!
I'd like to ask about what the exact semantics of strictlanguage parameter to wbsearchentities in Wikibase API should be. It doesn't seem to be well-documented (not at all on mediawiki.org) and I'm not sure how it should work. Namely:
- Should it return only matches that happen in exactly the language
given, no fallbacks at all? Are Q-id matches excluded (i.e. it would still match by Q-id)?
- If the match is found, but the entity is missing label/description
(can happen with match by alias and match by Q-id), can fallbacks be used to retrieve it or should only the label in the specified language be returned?
-- Stas Malyshev smalyshev@wikimedia.org
Wikidata mailing list Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata