Happy to see all the responses on this article! Also, thanks for pointing out the mistakes, I have now updated it based on everyone's feedback. Have also pushed the changes to the Github repo so the code examples there should be fully working now.

  1. I had forgotten to add the index name in the code I posted here. This had to be added as an argument to the .init() and .save() calls on the BlogPostIntex object as stated by Erfan Tahriri. As MonkeyMarzipan noted in the comments, this could also be done in the Meta class on the BlogPostIndex, which is the solution I went with and added to the tutorial.

Thanks again for your responses! If there are any other issues, please let me know in the comment section. Also, if you have any other subjects you think I should cover in a tutorial, don’t hesitate to reach out to me and let me know or leave a comment below!

Thanks.

--

--

Javascript developer. Passionate learner.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store