-
Notifications
You must be signed in to change notification settings - Fork 73
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
Change over from Algolia search to PHP search backend #263
Change over from Algolia search to PHP search backend #263
Conversation
We originally added in Algolia as a stop gap as we had not very many days before launch and needed to get something in quickly. However Algolia is very expensive and although the searching is great we cannot afford to keep running the site on it. Here is where @ChrisHolland came in :D. There is now a PHP backend setup that is super fast and works the same as Algolia for all intents and purposes for our search! The new useSearch hook uses that and removes the need for Algolia entirely from the site.
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.
This looks awesome @llexical thank you so much for getting this taken care of!! Appreciate you keeping the documentation updated as well 😄
Left one small comment about being able to remove any of the Algolia NPM packages.
From a code standpoint everything looks excellent. I need to get the SEARCH_API_ENDPOINT
value set in Netlify so that I can do some testing for ya.
Thank you so much again!
Oh! @llexical any chance we can also remove the "Search powered by Algolia" bit in this PR as well? |
Prefixed the frontend search environment variable with Gatsby. Honestly not sure how much of a difference it makes however it does make it clear and it guarentees it will build correctly so added it in. Uninstalled the Algolia library and removed the 'search powered by Algolia' message.
After the move over from Algolia to our own inhouse search the website and donate links were not hooked up correctly with the cards.
We originally added in Algolia as a stop gap as we had not very many
days before launch and needed to get something in quickly. However
Algolia is very expensive and although the searching is great we cannot
afford to keep running the site on it.
Here is where @ChrisHolland came in :D. There is now a PHP backend
setup that is super fast and works the same as Algolia for all intents
and purposes for our search! The new useSearch hook uses that and
removes the need for Algolia entirely from the site.
NOTE: I believe the new backend only indexes approved Businesses, so I could remove that search filter.
Pages/Interfaces that will change
Steps to test
Additional Notes
SEARCH_API_ENDPOINT
environment variable to Netlify.