# Another multitenant scenario

**URL:** <https://discuss.elastic.co/t/another-multitenant-scenario/22409>\
**Category:** Elasticsearch\
**Created:** [February 26, 2015, 2:02pm UTC](https://discuss.elastic.co/t/another-multitenant-scenario/22409 "2015-02-26T14:02:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastian\_2](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@sebastian\_2](https://discuss.elastic.co/u/sebastian_2)\
**Post date:** [February 26, 2015, 2:02pm UTC](https://discuss.elastic.co/t/another-multitenant-scenario/22409/1 "2015-02-26T14:02:15Z")

</div>

Hi guys!

I'm looking to find the best indexing strategy for my multitenant data.

Here is my scenario:

- Tenants: \> 10000
- Each tenant has "User" documents where all of these docs have common  
fields, but also they have tenant-specific fields:
  - { tenant: "contoso", name: "peter", location: { id: 1, City: "New  
York", Street: "57th St" }, metadata: { foo: { bar: "test" } } }
  - { tenant: "fabrikam", name: "mary", location: "San Francisco",  
metadata: { foo: ["bar", "test"] }, plan: "gold" }
  - { tenant: "fabrikam", name: "john", location: "Seattle", metadata:  
{ foo: ["abc", "xyz"] }, plan: "silver" }

Any ideas?  
Thanks!

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/530c9dbe-3735-4c49-b6a9-9127ccca6d24%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/530c9dbe-3735-4c49-b6a9-9127ccca6d24%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:29am UTC](https://discuss.elastic.co/t/another-multitenant-scenario/22409/2 "2017-07-06T00:29:52Z")

</div>


