Problem:
Special:Search right now only allows for searching across all languages in the Lexeme namespace. It would be useful to allow to restrict the search to a specific language in order to make finding the right Lexeme easier.
In order to do this we should introduce new cirrus search keywords. These could be haslemma:en and inlanguage:Q1860.
Example:
A search for "a" to find the English indefinite article. It is currently the 17th result.
BDD
GIVEN a Lexeme search
AND a keyword "inlanguage:Q1860" or "inlanguage:en"
THEN the results only contain Lexemes with English as the Lexeme language
GIVEN a Lexeme search
AND a keyword "haslemma:en"
THEN the results only contain Lexemes with English as one Lemma's spelling variant
Acceptance criteria:
- Results on Special:Search can be restricted by language via 2 new keywords
Notes:
- existing keywords specific to Wikibase: https://www.mediawiki.org/wiki/Help:Extension:WikibaseCirrusSearch