Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve search result sorting and add subtitles to results #212

Conversation

conrad-vanl
Copy link
Member

@conrad-vanl conrad-vanl commented Apr 9, 2024

🐛 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

Copy link

vercel bot commented Apr 9, 2024

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

Copy link
Member Author

conrad-vanl commented Apr 9, 2024

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

@conrad-vanl conrad-vanl marked this pull request as ready for review April 9, 2024 14:05
Base automatically changed from 04-09-maybe_fix_builds_and_deploys to main April 9, 2024 14:05
@redreceipt
Copy link
Member

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

Copy link
Member

@redreceipt redreceipt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice. good start.

@conrad-vanl conrad-vanl merged commit e5644c7 into main Apr 9, 2024
6 checks passed
@conrad-vanl conrad-vanl deleted the 04-09-improve_search_result_sorting_and_add_subtitles_to_results branch April 9, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants