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
enhancement(search website): Add page tags to search index #8261
Conversation
✔️ Deploy Preview for vector-project ready! 🔨 Explore the source changes: f361610 🔍 Inspect the deploy log: https://app.netlify.com/sites/vector-project/deploys/60f73dee85d7390008bb9fb6 😎 Browse the preview: https://deploy-preview-8261--vector-project.netlify.app |
cc38e2b
to
12de2ce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the changes to the file source be in here?
@zsherman That was a relic of us changing the branching scheme for the website. Fixed via rebase. |
8d9a442
to
906b3b4
Compare
Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com>
Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com>
Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com>
Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com>
Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com>
Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com>
Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com>
Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com>
Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com>
906b3b4
to
f361610
Compare
* Add tags to indexing and trim titles Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Change meta element name to keywords Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Update JS search widget to use hierarchy instead of tags Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Fix Typescript type issue in indexing script Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Try different TS syntax for undefined Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Fix or error in script Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Fix more or/default issues Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Remove unused dependencies and variables and refactor section recursion Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Add .env file to gitignore Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> Co-authored-by: Luc Perkins <luc.perkins@datadoghq.com> Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com>
* Add tags to indexing and trim titles Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Change meta element name to keywords Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Update JS search widget to use hierarchy instead of tags Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Fix Typescript type issue in indexing script Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Try different TS syntax for undefined Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Fix or error in script Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Fix more or/default issues Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Remove unused dependencies and variables and refactor section recursion Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Add .env file to gitignore Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> Co-authored-by: Luc Perkins <luc.perkins@datadoghq.com> Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com>
* Add tags to indexing and trim titles Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Change meta element name to keywords Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Update JS search widget to use hierarchy instead of tags Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Fix Typescript type issue in indexing script Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Try different TS syntax for undefined Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Fix or error in script Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Fix more or/default issues Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Remove unused dependencies and variables and refactor section recursion Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Add .env file to gitignore Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> Co-authored-by: Luc Perkins <luc.perkins@datadoghq.com> Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com>
* Add tags to indexing and trim titles Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Change meta element name to keywords Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Update JS search widget to use hierarchy instead of tags Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Fix Typescript type issue in indexing script Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Try different TS syntax for undefined Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Fix or error in script Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Fix more or/default issues Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Remove unused dependencies and variables and refactor section recursion Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Add .env file to gitignore Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> Co-authored-by: Luc Perkins <luc.perkins@datadoghq.com> Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com>
* Add tags to indexing and trim titles Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Change meta element name to keywords Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Update JS search widget to use hierarchy instead of tags Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Fix Typescript type issue in indexing script Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Try different TS syntax for undefined Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Fix or error in script Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Fix more or/default issues Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Remove unused dependencies and variables and refactor section recursion Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> * Add .env file to gitignore Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com> Co-authored-by: Luc Perkins <luc.perkins@datadoghq.com> Signed-off-by: Luc Perkins <luc.perkins@datadoghq.com>
This PR updates the search indexing logic for the new vector.dev to include per-page tags. It also performs some basic input sanitation by ensuring that there's no extraneous whitespace in section titles. Including tags should improve the search sensitivity and give us more per-page levers that we can use to influence result sets.
Please note that this renames what was previously the
tags
field tohierarchy
to make room for what I feel is a more intuitively namedtags
field.