ApollosProject / apollos-embeds

Apollos React Embeds that can be used in Webflow and other third-party websites.
https://www.npmjs.com/package/@apollosproject/apollos-embeds
0 stars 0 forks source link

Improve search result sorting and add subtitles to results #212

Closed conrad-vanl closed 7 months ago

conrad-vanl commented 7 months ago

🐛 Issue

Since we have two indices, search results always return with web page results first, and content item results second.

This makes it hard to the user to understand which results to look at, and without any other result context (like summaries) the quality of the search results feel very poor.

✏️ Solution

  1. Combine multi-index results into a single array. This is hacky, and isn't a permanent solution. Best case - the results end up in a much better order. Worse case - they end up in a similar order to they are already.

  2. Add summary/subtitles to results

  3. Remove "Search history" section if you have search results

As a follow up, @vinnyjth is going to document work to be done on the shovel to create a new, combined index that we can start tweaking to more dramatically improve search results.

Also, we will need to pursue a minor (hopefully) refactor for search on the web. Currently, all search is done through the autocomplete API on Algolia, not the instantsearch api. This means that features like snippeting is not available, and we also can not use any of Algolia's out of the box react components. Not using algolia best practices, unfortunately.

🔬 To Test

  1. Boot up web embeds
  2. Test search

📸 Screenshots

Before After
Best Case: "Take Heart" content item is now listed first Screenshot 2024-04-09 at 9.01.24 AM.png Screenshot 2024-04-09 at 9.00.07 AM.png
Worse Case: The "Campus Locations" result is the best result, but still shown last Screenshot 2024-04-09 at 9.02.50 AM.png Screenshot 2024-04-09 at 9.00.36 AM.png
vercel[bot] commented 7 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
apollos-micro-service ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 9, 2024 2:20pm
apollos-web-embeds ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 9, 2024 2:20pm
conrad-vanl commented 7 months ago

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @conrad-vanl and the rest of your teammates on Graphite Graphite

redreceipt commented 7 months ago

well I'd say that was an effective weekly stand up meeting 😅