| thiemowmde added a comment. |
We do have a TermLookup interface with a few implementations, one that directly accesses the entity, and one that accesses wb_terms. This ticket suggests an other implementation that queries the Cirrus/Elastic index.
The features of TermLookup are currently used in quite a lot of very different places:
- In the getLabelByLanguage function in Lua.
- In the LinkBegin hook handler that makes sure proper labels are displayed when linking to Wikidata entities.
- In the LabelDescriptionLookup implementations, which are again used in about two dozen different places.
It might be possible to replace some of these usages with new Cirrus/Elastic based infrastructure that does not implement TermLookup. However, there are so many places, it doesn't seem to be a good idea to replace them all. The easiest way forward seems to be a new Cirrus/Elastic based TermLookup that can then be used wherever necessary, and slowly replace especially the remaining wb_terms lookups.
TASK DETAIL
EMAIL PREFERENCES
To: thiemowmde
Cc: Rzuwig, Smalyshev, hoo, Liuxinyu970226, Aklapper, aude, JanZerebecki, JeroenDeDauw, Tobi_WMDE_SW, thiemowmde, adrianheine, Lydia_Pintscher, Ricordisamoa, daniel, Lahi, Gq86, Darkminds3113, GoranSMilovanovic, QZanden, LawExplorer, Vali.matei, Volker_E, Wikidata-bugs, GWicke, Mbch331, Jay8g
Cc: Rzuwig, Smalyshev, hoo, Liuxinyu970226, Aklapper, aude, JanZerebecki, JeroenDeDauw, Tobi_WMDE_SW, thiemowmde, adrianheine, Lydia_Pintscher, Ricordisamoa, daniel, Lahi, Gq86, Darkminds3113, GoranSMilovanovic, QZanden, LawExplorer, Vali.matei, Volker_E, Wikidata-bugs, GWicke, Mbch331, Jay8g
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
