Implement programming language aggregations in Zoekt

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

We're building aggregations into our Elasticsearch functionality for different faceting options. Since we're doing this for Elasticsearch and we don't want Zoekt to be a compromise in functionality, we would like to allow seeing the counts of different languages that match a search and then use that to filter down results.

I have yet to find a way in Zoekt to return the statistics of matched languages but my guess is that it should be possible (even if it requires extending the HTTP API) since this seems to be available on Sourcegraph which is powered by Zoekt.

Edited by 🤖 GitLab Bot 🤖