You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is the right place to report this issue. If it's not, please feel free to close this issue and let me know where I should post it.
In the code snippet provided in the "Get Started" section to start using Algolia, there are some errors:
use Algolia\AlgoliaSearch\SearchClient will throw an error because SearchClient doesn't exist in that namespace. From v4 onwards, the correct namespace is Algolia\AlgoliaSearch\Api\SearchClient.
Furthermore, initIndex is no longer available in the new class, so it must be removed.
Thank you very much for your report! We are in the process of updating our website to reflect these changes.
We will close this issue when it's done.
Btw, I took the liberty to remove your admin API key from the code snippet you shared, but it's still available in the issue history.
I'd suggest you go to your account and rotate it from the settings page! 😁
Hi,
I'm not sure if this is the right place to report this issue. If it's not, please feel free to close this issue and let me know where I should post it.
In the code snippet provided in the "Get Started" section to start using Algolia, there are some errors:
use Algolia\AlgoliaSearch\SearchClient
will throw an error because SearchClient doesn't exist in that namespace. From v4 onwards, the correct namespace isAlgolia\AlgoliaSearch\Api\SearchClient
.Furthermore,
initIndex
is no longer available in the new class, so it must be removed.Maybe is better to show the Get Started example available in the PHP docs.
Have a nice day
The text was updated successfully, but these errors were encountered: