algolia / gatsby-plugin-algolia

A plugin to push to Algolia based on graphQl queries
https://yarn.pm/gatsby-plugin-algolia
Apache License 2.0
178 stars 45 forks source link

Add option to create index it it does not exist #52

Closed krvajal closed 4 years ago

krvajal commented 4 years ago

Currently you need to create the index first in the Algolia dashboard for this plugin to work. I would be nice if this plugin could create the index for me it the specified index does not exists yet.

Haroenv commented 4 years ago

Ah, that's interesting behaviour, it must have regressed in a recent version, since originally the plugin made the index. If you're feeling adventurous, any operation, like doing an empty "setSettings" creates an index.

krvajal commented 4 years ago

I will give it a try, thx