Re: I have a few million users, and I want to index for per user, but.....

2014-11-07 Thread Nikolas Everett
Just add the user's id or name to each document and add a term filter to
all of their queries.  Then use routing
.  At
least that is the canonical way to solve it.

On Fri, Nov 7, 2014 at 3:09 AM, David shi  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 elasticsearch+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/d5123953-b3b8-4dbb-9c1a-566515d51172%40googlegroups.com
> 
> .
> 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 elasticsearch+unsubscr...@googlegroups.com.
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.


Re: I have a few million users, and I want to index for per user, but.....

2014-11-07 Thread Georgi Ivanov
Aliases may be ?
So one index , may aliases (user_1,user_2...)



On Friday, November 7, 2014 9:09:03 AM UTC+1, David shi 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 elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/4389e5ed-c51d-4788-b91c-1a0fb241ee5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


I have a few million users, and I want to index for per user, but.....

2014-11-07 Thread David shi

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 elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/d5123953-b3b8-4dbb-9c1a-566515d51172%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.