-
Notifications
You must be signed in to change notification settings - Fork 75
enh(search): move search to algolia #788
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
base: main
Are you sure you want to change the base?
Conversation
| indexName: indexName, | ||
| searchClient: searchClient | ||
| // Add back once attributes confirmed: | ||
| // searchParameters: { restrictSearchableAttributes: ['title','hierarchy.lvl0','hierarchy.lvl1','content'] } |
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.
Do these attributes still need confirmation?
| if (lower.includes('python-package-guide/tutorials/')) return 'Tutorial'; | ||
| if (lower.includes('/lessons/')) return 'Tutorial'; |
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.
| if (lower.includes('python-package-guide/tutorials/')) return 'Tutorial'; | |
| if (lower.includes('/lessons/')) return 'Tutorial'; | |
| if (lower.includes('python-package-guide/tutorials/') || lower.includes('/lessons/')) return 'Tutorial'; |
To be like the other "multi-source" tags?
| // searchParameters: { restrictSearchableAttributes: ['title','hierarchy.lvl0','hierarchy.lvl1','content'] } | ||
| }); | ||
|
|
||
| function hl(hit, path) { |
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.
Does "hl" stand for "highlight"? Apologies if this is overly pedantic, but all of the other functions have great descriptive names. This function seems like an outlier.
This will close #649 when we implement it.