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