Just add the user's id or name to each document and add a term filter to all of their queries. Then use routing <http://www.elasticsearch.org/blog/customizing-your-document-routing/>. At least that is the canonical way to solve it.
On Fri, Nov 7, 2014 at 3:09 AM, David shi <[email protected]> wrote: > > I have a few million users, and will continue to grow, maybe a year later > increased to 1000W. > > each user have a lot of files , the file size is not fixed, maybe more > from 1M ~ 10M. > > I need to do is to give each user's document indexing, and allow the > current user can quickly search through the right content to the document. > > I have to think of is to build an index for each user, but there are > restrictions on the number of files in Linux single directory. > > You have any good suggestions for me??? > > Thank you very much!!!!! > > -- > 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/d5123953-b3b8-4dbb-9c1a-566515d51172%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/d5123953-b3b8-4dbb-9c1a-566515d51172%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAPmjWd1J0FnyxDr%3D3iFh52kt3boAcWrcZ4FTwPhs6yuuS8RgBg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
