# New to elasticsearch and wondering how to use it for a mult-tenant invironment

**URL:** <https://discuss.elastic.co/t/new-to-elasticsearch-and-wondering-how-to-use-it-for-a-mult-tenant-invironment/10567>\
**Category:** Elasticsearch\
**Created:** [January 31, 2013, 8:09am UTC](https://discuss.elastic.co/t/new-to-elasticsearch-and-wondering-how-to-use-it-for-a-mult-tenant-invironment/10567 "2013-01-31T08:09:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![scamo](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@scamo](https://discuss.elastic.co/u/scamo)\
**Post date:** [January 31, 2013, 8:09am UTC](https://discuss.elastic.co/t/new-to-elasticsearch-and-wondering-how-to-use-it-for-a-mult-tenant-invironment/10567/1 "2013-01-31T08:09:43Z")

</div>

Hi,

Hope I can get an rough idea on how (or if it is even possible) to  
implement ES for a system, which will host tenants in a PaaS environment.  
Each tenant will have its own database, but share the same core software  
including elasticsearch. So what would be the suggested solution, to store  
the search data in elasticseach, but keep it separated for each tenant? Is  
it possible?

scamo

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 31, 2013, 8:25am UTC](https://discuss.elastic.co/t/new-to-elasticsearch-and-wondering-how-to-use-it-for-a-mult-tenant-invironment/10567/2 "2013-01-31T08:25:44Z")

</div>

As far as I understand your concern, Index in Elasticsearch are designed to cover that need.

Think index as "database" and type as "table".

On the same cluster, you can have many indexes and each index will contain its own types.

Is it what you are after?

Le 31 janv. 2013 à 09:09, scamo [scottamolinari@googlemail.com](mailto:scottamolinari@googlemail.com) a écrit :

> Hi,
> 
> Hope I can get an rough idea on how (or if it is even possible) to implement ES for a system, which will host tenants in a PaaS environment. Each tenant will have its own database, but share the same core software including elasticsearch. So what would be the suggested solution, to store the search data in elasticseach, but keep it separated for each tenant? Is it possible?
> 
> scamo
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [January 31, 2013, 10:12am UTC](https://discuss.elastic.co/t/new-to-elasticsearch-and-wondering-how-to-use-it-for-a-mult-tenant-invironment/10567/3 "2013-01-31T10:12:03Z")

</div>

On Thu, 2013-01-31 at 00:09 -0800, scamo wrote:

> Hi,
> 
> Hope I can get an rough idea on how (or if it is even possible) to  
> implement ES for a system, which will host tenants in a PaaS  
> environment. Each tenant will have its own database, but share the  
> same core software including elasticsearch. So what would be the  
> suggested solution, to store the search data in elasticseach, but keep  
> it separated for each tenant? Is it possible?

Have a look at this video, which gives a lot of info about how to  
organise your data:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

clint

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 2:53am UTC](https://discuss.elastic.co/t/new-to-elasticsearch-and-wondering-how-to-use-it-for-a-mult-tenant-invironment/10567/4 "2017-07-06T02:53:47Z")

</div>


