We use elasticsearch for next use. Elasticsearch Version: 5.1.1
Note: We use managed AWS ElasticSearch
We have a multi-storey system in which each tenant stores data for several things and the number of tenants every day.
exa: each tenant will have the following information.
1] tickets 2] sw_inventory 3] hw_inventory
Current stratergy indexing is as follows:
index_name:
tenant_id (GUID) exa: tenant_xx1234xx-5b6x-4982-889a-667a758499c8
types:
1] tickets 2] sw_inventory 3] hw_inventory
The problems we are facing:
1] Conflicts for mapping common exa fields: (id, name, userId) in types (tickets, sw_inventory, hw_inventory)
2] As the number of tenants increases, the number of indices can reach up to 1000 or 2000 as well.
Would it be a good idea if we cancel stratergy indexing?
exa: index names:
1] tickets 2] sw_inventory 3] hw_inventory
types:
tenant_tenant_id1 tenant_tenant_id2 tenant_tenant_id3 tenant_tenant_id4
Thus, there will be only 3 huge indexes with N number of types as tenants.
So the question in this case is which solution is better?
1] Many small indexes and 3 types
OR
2] 3 huge indexes and many types
Hi
elasticsearch
SSG
source share