# Algolia not creating index

**URL:** <https://forum.builder.io/t/algolia-not-creating-index/1188>\
**Category:** Technical Questions\
**Tags:** plugin\
**Created:** [October 18, 2021, 11:03am UTC](https://forum.builder.io/t/algolia-not-creating-index/1188 "2021-10-18T11:03:22Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![niftycode](https://avatars.discourse-cdn.com/v4/letter/n/c5a1d2/32.png) [@niftycode](https://forum.builder.io/u/niftycode)\
**Post date:** [October 18, 2021, 11:03am UTC](https://forum.builder.io/t/algolia-not-creating-index/1188/1 "2021-10-18T11:03:22Z")

</div>

**Builder content link**

> **[Builder.io: Drag and drop page builder and CMS](https://builder.io/models/8a7d979ff01e46b8b245d958b3122ffd)**
>
> Build and optimize digital experiences for any tech stack, visually.

> **[Builder.io: Drag and drop page builder and CMS](https://builder.io/content/f041dedf83bb4e1da072340ac6193b13)**
>
> Build and optimize digital experiences for any tech stack, visually.

**Builder public api key**  
6f2f9c65450342bd8d76ca12925dbedf

**What are you trying to accomplish**  
Using the Algolia plugin to add search to websites.

Hi

Followed the instructions here, [builder/plugins/algolia at main · BuilderIO/builder · GitHub](https://github.com/BuilderIO/builder/tree/main/plugins/algolia), the webhook is added but when I go to Algolia, no index with the model name has been created.

Cheers

Peter

---

<div class="post-metadata">

**Author:** ![niftycode](https://avatars.discourse-cdn.com/v4/letter/n/c5a1d2/32.png) [@niftycode](https://forum.builder.io/u/niftycode)\
**Post date:** [October 18, 2021, 11:35am UTC](https://forum.builder.io/t/algolia-not-creating-index/1188/2 "2021-10-18T11:35:24Z")

</div>

Okay, think this is CORS related…

 ![Screenshot 2021-10-18 at 12.34.43](https://us1.discourse-cdn.com/flex020/uploads/builder/original/1X/8ac3eaca1df6ddb31f456fe0a4b96b32ffdbe5ef.png)

---

<div class="post-metadata">

**Author:** ![TimG](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/timg/32/714_2.png) [@TimG](https://forum.builder.io/u/TimG)\
**Post date:** [October 19, 2021, 6:46pm UTC](https://forum.builder.io/t/algolia-not-creating-index/1188/3 "2021-10-19T18:46:28Z")

</div>

Hi @niftycode just wanted to follow up here, based on the screenshot it looks like there may be an issue with your setup or permissions within Amplitude. Please let us know if you continue to have an issue with Builder we can assist on. Thanks!

---

<div class="post-metadata">

**Author:** ![niftycode](https://avatars.discourse-cdn.com/v4/letter/n/c5a1d2/32.png) [@niftycode](https://forum.builder.io/u/niftycode)\
**Post date:** [October 19, 2021, 7:01pm UTC](https://forum.builder.io/t/algolia-not-creating-index/1188/4 "2021-10-19T19:01:29Z")

</div>

Hi, I don’t use amplitude, this is the screenshot of the console inspecting the builder interface.

---

<div class="post-metadata">

**Author:** ![TimG](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/timg/32/714_2.png) [@TimG](https://forum.builder.io/u/TimG)\
**Post date:** [October 19, 2021, 7:41pm UTC](https://forum.builder.io/t/algolia-not-creating-index/1188/5 "2021-10-19T19:41:20Z")

</div>

Ah Ok, I see…that should be mostly likely unrelated then. I clicked the first link you provided and it says the Model is not yet created, did you delete the model you originally were planning to sync with Algolia? If there is another we can try to sync again and see if any specific errors come up, otherwise I would confirm your settings in Algolia match what is shown in screen shot below and on the readme:

> **[builder/plugins/algolia at main · BuilderIO/builder](https://github.com/BuilderIO/builder/tree/main/plugins/algolia)**
>
> main/plugins/algolia

 ![Screen Shot 2021-10-19 at 12.36.57 PM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/1X/f860ae96306867338a26235bce1843a32932924b.jpeg)

---

<div class="post-metadata">

**Author:** ![niftycode](https://avatars.discourse-cdn.com/v4/letter/n/c5a1d2/32.png) [@niftycode](https://forum.builder.io/u/niftycode)\
**Post date:** [October 26, 2021, 10:04am UTC](https://forum.builder.io/t/algolia-not-creating-index/1188/6 "2021-10-26T10:04:14Z")

</div>

Hi Tim

I just clicked the first link and it took me to the model I was expecting??

Cheers

Peter

---

<div class="post-metadata">

**Author:** ![Paul](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/paul/32/831_2.png) [@Paul](https://forum.builder.io/u/Paul)\
**Post date:** [November 17, 2021, 11:54pm UTC](https://forum.builder.io/t/algolia-not-creating-index/1188/7 "2021-11-17T23:54:19Z")

</div>

Hey!  
Looks like the Algolia connection is still not fully working?  
Couldn’t get the data model content to be created on my Algolia indices, with or without the `builder-` prefix.

---

<div class="post-metadata">

**Author:** ![niftycode](https://avatars.discourse-cdn.com/v4/letter/n/c5a1d2/32.png) [@niftycode](https://forum.builder.io/u/niftycode)\
**Post date:** [December 13, 2021, 7:23pm UTC](https://forum.builder.io/t/algolia-not-creating-index/1188/8 "2021-12-13T19:23:00Z")

</div>

Hi

I have finally had time to revisit this and still the indice isn’t created when I sync with Algolia.

Cheers

Peter

---

<div class="post-metadata">

**Author:** ![niftycode](https://avatars.discourse-cdn.com/v4/letter/n/c5a1d2/32.png) [@niftycode](https://forum.builder.io/u/niftycode)\
**Post date:** [December 31, 2021, 11:44am UTC](https://forum.builder.io/t/algolia-not-creating-index/1188/9 "2021-12-31T11:44:43Z")

</div>

Just working on something else and have noticed this in my console:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at [Builder.io: Drag and drop page builder and CMS](https://cdn.builder.io/api/v1/algolia-sync/webhook?algoliaKey=3793ab58350e2e53cfb6d7dc02a852bd&algoliaAppId=PP1A4J5T87&modelName=page). (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.

Is this why Algolia isn’t working?

Cheers

---

<div class="post-metadata">

**Author:** ![ancheetah](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/ancheetah/32/751_2.png) [@ancheetah](https://forum.builder.io/u/ancheetah)\
**Post date:** [January 5, 2022, 10:10pm UTC](https://forum.builder.io/t/algolia-not-creating-index/1188/10 "2022-01-05T22:10:20Z")

</div>

Hi @niftycode thanks for reporting this. The CORS requests seem unrelated. I tried this plugin and did see a `Failed to execute ‘postMessage’ on ‘Window’` error generated from the Algolia plugin. I’ve ticketed the issue with our team and will update you here when there is a fix available.
