Currently, mentors are sorted by "relevance" which is arbitrary and undefined with an empty query. At the same time, this leads to the same couple of mentors being shown at the front when the list of mentors doesn't change.
There are a few requirements:
- Mentors with fewer clicks should be sorted in front.
- To avoid the order of mentors jumping around constantly while the user is using the website (e.g. browsing through pages), the click data should be collected for each profile and then cached with a 24-hour expiration since the user last visited the website.
Click data will be tracked by #894. Sorting can then be configured by a similar approach to https://www.elastic.co/guide/en/search-ui/current/guides-changing-component-behavior.html#guides-changing-component-behavior-override-mapcontexttoprops.
KIV: Incorporate click data into sorting for any search query, using e.g. RRF to combine rankings.
Currently, mentors are sorted by "relevance" which is arbitrary and undefined with an empty query. At the same time, this leads to the same couple of mentors being shown at the front when the list of mentors doesn't change.
There are a few requirements:
Click data will be tracked by #894. Sorting can then be configured by a similar approach to https://www.elastic.co/guide/en/search-ui/current/guides-changing-component-behavior.html#guides-changing-component-behavior-override-mapcontexttoprops.
KIV: Incorporate click data into sorting for any search query, using e.g. RRF to combine rankings.