# Creating an Index-based Engine is broken on the GUI in app-search

**URL:** <https://discuss.elastic.co/t/creating-an-index-based-engine-is-broken-on-the-gui-in-app-search/379790>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [July 3, 2025, 7:17pm UTC](https://discuss.elastic.co/t/creating-an-index-based-engine-is-broken-on-the-gui-in-app-search/379790 "2025-07-03T19:17:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndesanto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ndesanto/32/143393_2.png) [@ndesanto](https://discuss.elastic.co/u/ndesanto)\
**Post date:** [July 3, 2025, 7:17pm UTC](https://discuss.elastic.co/t/creating-an-index-based-engine-is-broken-on-the-gui-in-app-search/379790/1 "2025-07-03T19:17:50Z")

</div>

Hello!

When using Elasticsearch App Search we need to create index-based engines, but when we go to search for the index on GUI we encounter a 502 error. It seems to be because of the Index-searching box as it comes up with 0 results; whereas in our Prod environment this process works fine.

Some other notes:

- Using the API to create index-based engines works
- This problem persisted from our upgrade from ES 8.7.0 -\> 8.18.1.
- my running theory is we have some corrupted index?

Here is a screenshot of what ES is displaying

 ![Screenshot 2025-07-03 at 3.09.15 PM](https://us1.discourse-cdn.com/elastic/original/3X/e/2/e249e868800f7a951520ff0b5a49b7d23556da5b.jpeg)

Has anyone ran into this issue before/ have any advice on how to fix this?

Thanks!

edit: fixed version from 8.13.1 to 8.18.1

---

<div class="post-metadata">

**Author:** ![Mark\_Hoy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_hoy/32/99384_2.png) [@Mark\_Hoy](https://discuss.elastic.co/u/Mark_Hoy)\
**Post date:** [July 3, 2025, 7:40pm UTC](https://discuss.elastic.co/t/creating-an-index-based-engine-is-broken-on-the-gui-in-app-search/379790/2 "2025-07-03T19:40:14Z")

</div>

Hi @ndesanto -

A couple of questions

> - This problem persisted from our upgrade from ES 8.7.0 -\> 8.13.1.

Are you saying this problem occurred on 8.7 as well, and then you upgraded to 8.13.1, and it's still occurring?

Also - are your Elasticsearch instances running the same version as your Kibana instances and your Enterprise Search instances as well? (i.e. did you upgrade everything from 8.7 to 8.13.1, or only Elasticsearch?)

I have a feeling there might be a version mismatch somewhere, as the callout banner in your screenshot was not added until 8.16.

---

<div class="post-metadata">

**Author:** ![ndesanto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ndesanto/32/143393_2.png) [@ndesanto](https://discuss.elastic.co/u/ndesanto)\
**Post date:** [July 4, 2025, 1:02pm UTC](https://discuss.elastic.co/t/creating-an-index-based-engine-is-broken-on-the-gui-in-app-search/379790/3 "2025-07-04T13:02:52Z")

</div>

Thanks Mark

Yes, the problem occurred on 8.7 before we upgraded and is still occurring on 8.18.1 after we upgrade (as you can tell by the banner in the screenshot)

We did the upgrade through the upgrade-assistant/elastic cloud so I believe everything is the same version:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/1/61b0e901bef1c21a91749f6cae7e184186c727b7.png)

Result of `GET /` in the dev tools console

```auto
{
  "name": "instance-0000000006",
  "cluster_name": "f00b58db2b534e819084ac8afc5cdb55",
  "cluster_uuid": "RbYwnIyGSbeFNjml4FMM3A",
  "version": {
    "number": "8.18.1",
    "build_flavor": "default",
    "build_type": "docker",
    "build_hash": "df116ec6455476a07daafc3ded80e2bb1a3385ed",
    "build_date": "2025-04-30T10:07:44.026929518Z",
    "build_snapshot": false,
    "lucene_version": "9.12.1",
    "minimum_wire_compatibility_version": "7.17.0",
    "minimum_index_compatibility_version": "7.0.0"
  },
  "tagline": "You Know, for Search"
}

```

Is there anywhere else I should check the version of?

edit: fixed version from 8.13.1 to 8.18.1

---

<div class="post-metadata">

**Author:** ![Mark\_Hoy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_hoy/32/99384_2.png) [@Mark\_Hoy](https://discuss.elastic.co/u/Mark_Hoy)\
**Post date:** [July 4, 2025, 1:29pm UTC](https://discuss.elastic.co/t/creating-an-index-based-engine-is-broken-on-the-gui-in-app-search/379790/4 "2025-07-04T13:29:33Z")

</div>

@ndesanto - thanks for the additional context - I did not realize that you were on an Elastic Cloud hosted environment... if you used the upgrade dialogues through that, then you _should_ be on the same versions for all components...

> - Using the API to create index-based engines works

You note that you were able to use the API to create an engine - were you able to successfully use the API to list the engines as well to list all engines ([Engines API | App Search documentation [8.18] | Elastic](https://www.elastic.co/guide/en/app-search/current/engines.html#engines-list)) ?

If that fails, you can add in [the X-Enterprise-Search-Debug header] ([Troubleshooting | App Search documentation [8.18] | Elastic](https://www.elastic.co/guide/en/app-search/current/troubleshooting.html#troubleshooting-debugging-queries-debug-header)) to get additional information about the query that App Search is sending to Elasticsearch which might help pinpoint the cause.

Since this appears to be a gateway error (502) - it might be a good case for opening a [support case as well](https://support.elastic.co/) as we'd be able to then see your cluster's infrastructure and help diagnose this.

---

<div class="post-metadata">

**Author:** ![ndesanto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ndesanto/32/143393_2.png) [@ndesanto](https://discuss.elastic.co/u/ndesanto)\
**Post date:** [July 7, 2025, 1:20pm UTC](https://discuss.elastic.co/t/creating-an-index-based-engine-is-broken-on-the-gui-in-app-search/379790/5 "2025-07-07T13:20:29Z")

</div>

Yep, getting all engines works; I believe its just a UI/internal API issue for `internal/enterprise_search/search_indices`

 ![Screenshot 2025-07-07 at 9.13.28 AM](https://us1.discourse-cdn.com/elastic/original/3X/8/b/8bae8ce6b29c879bbb23e047f4d7948f86a7b2e8.jpeg)

Also, I don't know why I keep typing `v8.13.1`, I mean our current version is `v8.18.1`; I'll edit my previous comments!

---

<div class="post-metadata">

**Author:** ![Mark\_Hoy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_hoy/32/99384_2.png) [@Mark\_Hoy](https://discuss.elastic.co/u/Mark_Hoy)\
**Post date:** [July 7, 2025, 3:52pm UTC](https://discuss.elastic.co/t/creating-an-index-based-engine-is-broken-on-the-gui-in-app-search/379790/6 "2025-07-07T15:52:07Z")

</div>

@ndesanto - Thanks for the additional note and correction on the versioning...

I would think that perhaps the next place to look would be in the Kibana logs for your cluster - that would most likely have a message regarding the 502 error, as well as more potential debugging information and messaging.

If this does not yield any good information, since you are on the Elastic Hosted Cloud - it might help to also open a [support case](https://support.elastic.co/) so that our engineers would be able to help view your logs as well.

---

<div class="post-metadata">

**Author:** ![ndesanto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ndesanto/32/143393_2.png) [@ndesanto](https://discuss.elastic.co/u/ndesanto)\
**Post date:** [July 17, 2025, 7:32pm UTC](https://discuss.elastic.co/t/creating-an-index-based-engine-is-broken-on-the-gui-in-app-search/379790/7 "2025-07-17T19:32:04Z")

</div>

I figured it out from another forum post. If any of your indexes are closed on elastic this index-based engine creation breaks. You have to only have open indexes for some reason...

Solution can be found here: [Problem create Engine - Enterprise Search encountered an error. Check Kibana Server logs for details](https://discuss.elastic.co/t/problem-create-engine-enterprise-search-encountered-an-error-check-kibana-server-logs-for-details/341835)
