If you want to use more than 1024 terms, you will hit the Lucene max clause
limit.

Managing array is not a good idea with 10M+ items. You'd have to iterate it
by yourself for appending/modifying which will take a very long time (and
space).

Maybe you find this interesting for your model design

http://de.slideshare.net/martijnvg/document-relations

Jörg


On Wed, Jul 23, 2014 at 6:36 PM, <mich...@modernmast.com> wrote:

> Hey guys.
>
> I'm curious to know what are the limitations of an array type field? I'm
> using ES to store an array of social-network follower IDs for each of my
> users, and this can sometimes get big (10M+ items). Is this "okay" with
> arrays? Or should I be using something else like a nested type? My mapping
> is as followers:
>
> "follower_ids": {
>   "type": "string",
>   "index_name": "follower_id",
>   "norms": {
>     "enabled": false
>   },
>   "index": "no",
>   "index_options": "docs"
> }
>
> Worth mentioning that I'm also using a "terms" path filter on this array
> field.
>
> Your input/feedback is much appreciated!
>
> --
> 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/8a5c2f5b-1292-409f-9196-be8f0a00282f%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/8a5c2f5b-1292-409f-9196-be8f0a00282f%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 elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFaP71emRvd1tAPEeKTMBcuKvk_wCOTFATNe%3DbMgRQERQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to