Closed eunjae-lee closed 4 years ago
If user doesn't pass settings argument, then we need to read the settings from Algolia server and apply them to the new temporary index. Otherwise, the settings will be lost.
settings
https://github.com/algolia/gatsby-plugin-algolia/blob/master/gatsby-node.js#L167
Before this if statement, we could do something like
if
if (!settings && indexToUse === tempIndex) { settings = await index.getSettings() }
If it's the same index, we don't need to get the whole settings and apply them again.
fix released in 0.9.0
If user doesn't pass
settings
argument, then we need to read the settings from Algolia server and apply them to the new temporary index. Otherwise, the settings will be lost.https://github.com/algolia/gatsby-plugin-algolia/blob/master/gatsby-node.js#L167
Before this
if
statement, we could do something likeIf it's the same index, we don't need to get the whole settings and apply them again.