# Architecture Elasticsearch?

**URL:** <https://discuss.elastic.co/t/architecture-elasticsearch/132939>\
**Category:** Elasticsearch\
**Created:** [May 23, 2018, 7:36am UTC](https://discuss.elastic.co/t/architecture-elasticsearch/132939 "2018-05-23T07:36:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![data\_scientist](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@data\_scientist](https://discuss.elastic.co/u/data_scientist)\
**Post date:** [May 23, 2018, 7:36am UTC](https://discuss.elastic.co/t/architecture-elasticsearch/132939/1 "2018-05-23T07:36:14Z")

</div>

Hello,  
Please, I want to know is this architecture of documents in Elasticsearch that I have done is correct or not?

**Method 1:**  
I'm using the latest version of Elasticsearch 7  
We have several clients, and each client has specific files. I created for each file an index and a single type.

Example:  
C1 client has two files a1 and b1.  
C2 client has two files a2 and b2.  
I make an index 'a' and I add for this index the two files a1 and a2.  
and I made another index 'b' and I add for this index the two files b1 and b2.  
in each file I add a column for the username to do the filtering by this column.

**Method 2:**  
I use the version less than 6 of Elasticsearch.  
I make a single index with different type to add the files.

Example:  
C1 client has two files a1 and b1.  
C2 client has two files a2 and b2.

I make an index 'a' and I add for this index the two files a1 and a2 with different types.  
and I made another index 'b' and I add the two files b1 and b2.

I think the last version of Elasticsearch is better but I have to add a column in each file to do the filtering afterwards.

I need your proposal

---

<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:** [June 20, 2018, 7:36am UTC](https://discuss.elastic.co/t/architecture-elasticsearch/132939/2 "2018-06-20T07:36:22Z")

</div>

Closed on June 20, 2018, 7:36am UTC

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