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

Make blog post search better #695

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

travjenkins
Copy link
Member

@travjenkins travjenkins commented Feb 20, 2025

Label generate-pr-preview required before opening PR for preview build

Changes

  • Altering how we weight different things in search
  • Always search lower case to keep things more consistent
  • Inform users when not results were found

Tests / Screenshots

Now we will inform user when we cannot find blog posts

image

gcs search returns less results but much more accurate to query

image

@travjenkins travjenkins added the generate-pr-preview Used to kick off a preview build for a PR label Feb 20, 2025
Weighting slug and title the same
@@ -532,7 +533,7 @@ const cfg: GatsbyConfig = {
// List of keys to index. The values of the keys are taken from the
// normalizer function below.
// Default: all fields
index: ['title', 'searchable_tags'],
index: ['slug', 'title', 'searchable_tags'],
Copy link
Member Author

Choose a reason for hiding this comment

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

the slug sometimes contains some interesting values that might match what the user is searching for

@travjenkins
Copy link
Member Author

@danthelion - one idea I have been considering is making a list of like maybe 10 top terms we really want to make sure can be found and search for them automatically for users.

Meaning - if someone searches gcs we look up several terms for them gcs, google cloud, google cloud storage

danthelion
danthelion previously approved these changes Feb 20, 2025
Copy link

Visit the preview URL for this PR (updated for commit 4c0459c):

https://estuary-marketing--pr695-travjenkins-bug-blog-r4jujlc5.web.app

(expires Fri, 07 Mar 2025 23:10:03 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 76f6b095a0752e5d9c6c890267f9fdc3e392161e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
generate-pr-preview Used to kick off a preview build for a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants