# Can you connect elastic search-ui to elasticsearch instead of app search?

**URL:** https://discuss.elastic.co/t/can-you-connect-elastic-search-ui-to-elasticsearch-instead-of-app-search/254312
**Category:** Elastic Search
**Tags:** elastic-app-search
**Created:** [November 4, 2020, 5:16pm UTC](https://discuss.elastic.co/t/can-you-connect-elastic-search-ui-to-elasticsearch-instead-of-app-search/254312 "2020-11-04T17:16:37Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![spyderman4g63](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spyderman4g63/32/64172_2.png) [@spyderman4g63](https://discuss.elastic.co/u/spyderman4g63)
#### Post date: [November 4, 2020, 5:16pm UTC](https://discuss.elastic.co/t/can-you-connect-elastic-search-ui-to-elasticsearch-instead-of-app-search/254312/1 "2020-11-04T17:16:37Z")

</div>

I have a sample app I set up using [elastic search-ui](https://www.elastic.co/enterprise-search/search-ui). It connects to elastic app-search and returns results from a single-engine. I need to have multiple indexes or engines. According to this [thread](https://discuss.elastic.co/t/elastic-app-search-search-against-multiple-engines/200633) you cannot query multiple engines in-app search.

I know elasticsearch allows multiple index queries. My question. Can search-ui connect to elasticsearch instead of app-search?

If not is there another recommended UI kit for elasticsearch?

---

<div class="post-metadata">

### Author: ![spyderman4g63](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spyderman4g63/32/64172_2.png) [@spyderman4g63](https://discuss.elastic.co/u/spyderman4g63)
#### Post date: [November 4, 2020, 5:40pm UTC](https://discuss.elastic.co/t/can-you-connect-elastic-search-ui-to-elasticsearch-instead-of-app-search/254312/2 "2020-11-04T17:40:30Z")

</div>

One thing I did find is that [elastic's hosted app search seems to have a concept of meta-engines](https://www.elastic.co/blog/creating-meta-engines-in-elastic-app-search-to-scale-your-search-experiences) that is one possible way to solve the issue.

---

<div class="post-metadata">

### Author: ![constancecchen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/constancecchen/32/71762_2.png) [@constancecchen](https://discuss.elastic.co/u/constancecchen)
#### Post date: [November 30, 2020, 7:37pm UTC](https://discuss.elastic.co/t/can-you-connect-elastic-search-ui-to-elasticsearch-instead-of-app-search/254312/3 "2020-11-30T19:37:28Z")

</div>

Sorry for the super late response on this John - we definitely recommend using App Search's meta engines functionality to solve the particular use case described in your first post.

In answer to your other question,

> Can search-ui connect to elasticsearch instead of app-search?

Search UI technically can connect to Elasticsearch. Check out our documentation here: [GitHub - elastic/search-ui: Search UI. Libraries for the fast development of modern, engaging search experiences.](https://github.com/elastic/search-ui/#how-do-i-use-this-with-elasticsearch)

However, I do need to reiterate from the documentation that we **do not recommended to make API calls directly to Elasticsearch from a browser** , as noted in the [elasticsearch-js client](https://github.com/elastic/elasticsearch-js#browser), and additionally that Search UI's primary focus is on App Search. While we support other use cases and have some basic examples, we won't necessarily have in-depth examples or debugging for them. Hope that all makes sense!

---

<div class="post-metadata">

### Author: ![jacksumit](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@jacksumit](https://discuss.elastic.co/u/jacksumit)
#### Post date: [December 2, 2020, 12:37am UTC](https://discuss.elastic.co/t/can-you-connect-elastic-search-ui-to-elasticsearch-instead-of-app-search/254312/4 "2020-12-02T00:37:34Z")

</div>

> [@constancecchen](#):
>
> > we definitely recommend using App Search's meta engines functionality

While searching multiple indexes in Elasticsearch, these indexes can have completely different schemas. For example searching on index-\* will return results from index-organizations and index-contacts both.

Meta engine uses unified schemas. So creating meta engines for completed unrelated data (Organizations and Contacts) will impacts relevance tuning.

---

<div class="post-metadata">

### Author: ![spyderman4g63](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spyderman4g63/32/64172_2.png) [@spyderman4g63](https://discuss.elastic.co/u/spyderman4g63)
#### Post date: [December 2, 2020, 5:00pm UTC](https://discuss.elastic.co/t/can-you-connect-elastic-search-ui-to-elasticsearch-instead-of-app-search/254312/5 "2020-12-02T17:00:44Z")

</div>

Thanks for the reply. I ended up using a custom react.js app with the elastic EUI library and a node.js proxy to connect to elasticsearch.

---

<div class="post-metadata">

### Author: ![constancecchen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/constancecchen/32/71762_2.png) [@constancecchen](https://discuss.elastic.co/u/constancecchen)
#### Post date: [December 2, 2020, 5:00pm UTC](https://discuss.elastic.co/t/can-you-connect-elastic-search-ui-to-elasticsearch-instead-of-app-search/254312/6 "2020-12-02T17:00:51Z")

</div>

Right, you're totally right about that Sumit. For Meta Engines specifically, that's an intended functionality rather than a side effect - users can set unique custom weights, boosts, relevance tuning, and curations for meta engines.

Pinging @nickchow to speak more on that from the product side of things and to answer questions there.

---

<div class="post-metadata">

### Author: ![constancecchen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/constancecchen/32/71762_2.png) [@constancecchen](https://discuss.elastic.co/u/constancecchen)
#### Post date: [December 2, 2020, 5:04pm UTC](https://discuss.elastic.co/t/can-you-connect-elastic-search-ui-to-elasticsearch-instead-of-app-search/254312/7 "2020-12-02T17:04:51Z")

</div>

> Thanks for the reply. I ended up using a custom react.js app with the elastic EUI library and a node.js proxy to connect to elasticsearch.

Fantastic, glad to hear that worked out for you! EUI is definitely one of my favorite UI libraries to work with (I'm slightly biased of course!) Also cool to hear node.js works well directly with Elasticsearch and separately glad to hear the calls are all server-side! 😃

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [December 30, 2020, 5:05pm UTC](https://discuss.elastic.co/t/can-you-connect-elastic-search-ui-to-elasticsearch-instead-of-app-search/254312/8 "2020-12-30T17:05:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
