Skip to content
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

feat: add raw algolia response to access facets and fix index batch #63

Merged
merged 2 commits into from
Aug 24, 2023

Conversation

shanholmes
Copy link
Contributor

  • Add the raw response from Algolia to the output to allow access to other features from the search results such as facet counts

@shanholmes shanholmes changed the title feat: add raw algolia response to access facets feat: add raw algolia response to access facets and fix index batch Aug 24, 2023
@shanholmes
Copy link
Contributor Author

Added another commit to revise the indexBatch function in src/Tasks/AlgoliaReindex.php.
We were seeing that our Reindex task was failing to actually push through any records to Algolia.
This turned out to be because the call to getIndexByName only ever returns one Index, making the subsequent foreach in the try statement fail as $indexes was not iterable. Not sure why this is an issue now and my fix may not be correct but up for finding a solution regardless.

@wilr wilr merged commit 5a15632 into wilr:main Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants