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

Add search functionality #14

Merged
merged 25 commits into from
Nov 17, 2022
Merged

Add search functionality #14

merged 25 commits into from
Nov 17, 2022

Conversation

aaronmbos
Copy link
Owner

@aaronmbos aaronmbos commented Nov 17, 2022

Overview

This PR adds a search feature that allows users to search blog posts. The search will use blog titles, descriptions, content, and metadata to return results to the user.

Technical Decisions

Prior to starting this work, I set a few constraints for what I wanted to accomplish with the search feature.

  • If possible, use a free search index service
  • Make a minimal search experience that is effective
  • Search queries should be shareable via URL

Search index service

I did a bit of research and trialing of different search services, but ultimately decided on Algolia. Algolia has a good reputation and came with the following benefits that were important to me.

  • Generous free tier that should support my needs
  • Robust API documentation
  • UI components (not using them at this point)
  • Dashboard to monitor search usage

In my experience so far Algolia has been great and I'm happy I chose them.

Minimal search experience

For this initial release, I wanted to build an effective search experience, but not spend too much time with over-optimization. For example, search results are not paged and there are no autocompletion or search-as-you-type features. These are always features that can be added once I gauge search usage to see if it's worth my time.

2022-11-17 06 29 44

@vercel
Copy link

vercel bot commented Nov 17, 2022

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

Name Status Preview Updated
personal-site ✅ Ready (Inspect) Visit Preview Nov 17, 2022 at 0:10AM (UTC)

@aaronmbos aaronmbos deleted the feat/search branch November 17, 2022 12:31
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.

1 participant