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
The walkthrough shows how to create search terms for a single blog post.
The solution creates multiple records from a single blog post on Algolia without an objectId, and removes duplication via the slug attribute via the index's settings.
if(objects.length>0&&!objects[0].objectID){report.panic(`failed to index to Algolia. Query results do not have 'objectID' key`);}
When adding the objectId:
objectId: node.id
This causes the last write to Algolia to win, and it removes the duplicate search records for the same blog post. This means there's now one record for each blog post, the last one, rather than multiple search snippets for each post as required.
Is the approach taken by the video the correct solution for chunking blog posts into multiple search terms on Algolia? Or is there a regression in the library
The text was updated successfully, but these errors were encountered:
Hi, I'm following the walkthrough from: https://www.youtube.com/watch?v=VSkXyuXzwlc&feature=emb_logo
The walkthrough shows how to create search terms for a single blog post.
The solution creates multiple records from a single blog post on Algolia without an
objectId
, and removes duplication via theslug
attribute via the index's settings.However This doesn't work in the latest release of
gatsby-plugin-algolia
due to the following check added in https://github.com/algolia/gatsby-plugin-algolia/pull/27/files#diff-fda05457e393bada716f508859bfc604R103-R107When adding the objectId:
This causes the last write to Algolia to win, and it removes the duplicate search records for the same blog post. This means there's now one record for each blog post, the last one, rather than multiple search snippets for each post as required.
Is the approach taken by the video the correct solution for chunking blog posts into multiple search terms on Algolia? Or is there a regression in the library
The text was updated successfully, but these errors were encountered: