There has been multiple feedback requests for building search into the REST API from the community. Search is also one top 3 most used endpoints in the Action API and used in multiple internal tools as well
The idea would be for us to look into exploring what this would entail, would it be best to add search endpoints to the same REST API or build a new dedicated one, would it require rethinking a lot of the architecture, would it require work on other parts of the codebase. Then PoC can then be used to get some initial feedback from the community
Acceptance criteria:
- We have a running PoC API within 2 sprints that has the following functionality:
- search by labels and aliases
- mimic roughly what wbsearchentities does
- search results should include ID, labels, description, matched term ideally
- no performance optimization needed
- able to search in a language specified by the user
- PoC does not only do prefix search, i.e., not just autocomplete search (if I look for Khan, it should show me Shahrukh Khan as well)
- Has the ability to do what haswbstatement does as part of Special:Search, either as a separate endpoint or as a single endpoints (if this doesn't get too bloated and complex)
- build endpoints for properties and EntitySchemas (if there's time)
- PoC is deployed to beta.wikidata.org so few community members can test it