https://bugzilla.wikimedia.org/show_bug.cgi?id=40391

--- Comment #3 from jeb...@gmail.com 2012-10-23 10:34:18 UTC ---
I assume the idea is to create a function that does something similar to Change
I6ea1f848: New function getFromTerm that searches over both aliases and labels,
and provides the found entries to an api module wbsearchentities.

It could be argued that the function EntityHandler::getFromTerm should be
called EntityHandler::getMatchingTerms if the terms are returned or
EntityHandler::getMatchingEntities if the entities themself are returned or
EntityHandler::getMatchingIds if the ids are returned. Depending on how the
function is named it should return either ids or the entities or tuples of ids,
label with language, description with language, alias with language, and score.

Perhaps the function(s) should be made so it returns the data with varying
granularity. Ie. all three functions is made and the later builds on the
former.

Somehow...

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to