First of all, a big shout out to Daniel from the Wikidata team for adding the new
pageterms API we can use for getting Wikidata descriptions directly from the local MediaWiki site. Before that, we had to talk to
wikidata.org directly. Now we don't have to, which makes this more scalable and performant.
For search results we get those descriptions directly in search requests. So, no extra requests anymore. :) I hope we can get the
pageterms API to mobileview action soon, so we don't have to make separate requests to get the descriptions under the page titles.
The Read more entries are generated using full text search with the page title as the search term. We request the first four full text search results. Usually the same page is included in that. We omit the same page then, of course, or stop when we have three valid results.
Bernd