Page MenuHomePhabricator

Investigate using Search API Facets from ElasticSearch
Open, Needs TriagePublic

Description

Search API Facets: https://www.elastic.co/guide/en/app-search/current/facets.html

What we have built for task type / topic selector is basically like faceted search, so it might make sense to use the ElasticSearch API (assuming it is available to us) for this purpose. One specific benefit is being able to get the count available for each facet, so you can show the user how many results are matching a specific task type / topic before they click on it.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Tgr subscribed.

The API is available but we would have to build the Elastica query object and parse the response on our own. I doubt the outcome would be a net positive.
Maybe facets can somehow be grafted on top of normal search. There seem to be a couple other potential use cases (T37701, T275787, T251573).

I created a high-level task so that community and stakeholders can weigh in on the general topic of faceted search for Commons. T337106: Faceted, structured data-based MediaSearch on Wikimedia Commons