Last modified: 2012-12-13 11:21:10 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42391, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40391 - Prefix search over all labels and aliases
Prefix search over all labels and aliases
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Wikidata bugs
storypoints: 5
:
Depends on:
Blocks: 40392
  Show dependency treegraph
 
Reported: 2012-09-20 12:58 UTC by denny vrandecic
Modified: 2012-12-13 11:21 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description denny vrandecic 2012-09-20 12:58:13 UTC
Provide a prefix search over all labels and aliases of a given language that returns the appropriate items.
Comment 1 denny vrandecic 2012-09-27 08:46:10 UTC
It should support the following API: http://meta.wikimedia.org/wiki/Wikidata/Development/wbsearchentity
Comment 2 jeblad 2012-10-23 10:17:53 UTC
There is a patchset https://gerrit.wikimedia.org/r/#/c/25006/
Comment 3 jeblad 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...
Comment 4 jeblad 2012-10-23 11:31:09 UTC
Note that Store::newTermCache comes from the interface and is defined in SqlStore. Also TermCache::getMatchingTerms comes from the interface and is defined in TermSqlCache.
Comment 5 Anja Jentzsch 2012-11-29 12:42:00 UTC
Verified in Wikidata demo time for sprint 20

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links