When I use the CirrusSearch API it only gives the totalhits when searching using list=search, the searchinfo and totalhits are missing when using a generator.
I would like the generator search to include the totalhits. Adding gsrinfo=totalhits doesn't help.
Example search:
https://en.wikipedia.org/w/api.php?generator=search&format=json&action=query&gsrsearch=ablum
This is the change that removed searchinfo from generator searches:
https://gerrit.wikimedia.org/r/#/c/172794/
See also Phabricator task T75321