Page MenuHomePhabricator

Allow limiting lexeme searches by language
Open, MediumPublic

Description

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 haslang: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 "haslang:Q1860"
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: