[search] add search keyword modifiers #1397
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a method to attach arbitrary keywords or search terms to specific URLs in search index. See changes to CONTRIBUTING.md for authoring details. We used to have AI synonyms in Algolia, but we downgraded from algolia pro to algolia basic because we did not use the majority of the AI features because we did not send click events back to them. This is close-ish enough
Also added a few custom entries to the search index based on algolia usage stats.
To see output, check:
https://pr1397-460b025---lit-dev-5ftespv5na-uc.a.run.app/search-modifiers/keywords.json
to see keywords output and see
https://pr1397-460b025---lit-dev-5ftespv5na-uc.a.run.app/searchIndex.json
and CMD+F for
"keywords":
.I also tested this works on prod by editing the algolia search data on the live site with "keywords" and it didn't break anything and things started showing up as expected (I've since reverted those edits manually)