Hello,

I'm new elasticsearch, so this might be a stupid question but i'd love some
input before I get started creating my elasticsearch cluster.

Basically I will be indexing documents with a few fields (documents are
pretty small in size).  there are ~90million documents total.

On the search side of things, each search will be limited by the small
subset of documents that the user doing the search owns.

my initial thought was to just have one large index for all documents and
have a multi-value field that held the user ids of each user that owned
that document.  then when searching across the index i would do a filter
query to limit by that user id.  My only concern here is that this might be
slow query times because you are always having to filter down by user id
from a large data set to a very small subset (on average a user probably
owns less than 1k documents).

The other option I had is that i could create an index for each user and
just index their documents into their index, but this would duplicate a
massive amount of data and just seems hacky.

Any suggestions?

Thanks,
Mike

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CALdNedL-sLM%3DyMWsHHzriBmMwfe08mxVG%3D%3D9tSwxLwiWzfAcyw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to