About replica shard use many field data

2015-05-04 Thread Junheng Gong
we have about 2.2B data in our elasticsearch, and we using facet and function score query on those data. it will load many data to fielddata, and replica double it. so my question is how to set replica to make sure it won't use field data expect primary shard down? -- You received this

Re: About replica shard use many field data

2015-05-04 Thread Mark Walkom
Replica's don't double the amount of field data loaded. A query will only load what it needs from the shards it needs, but it won't load primary and replica, just one or the other. Ideally you should 1) upgrade to aggs, facets are deprecated and not as performant, and 2) upgrade to doc_values.

Re: About replica shard use many field data

2015-05-04 Thread Junheng Gong
Thanks for you replay Mark, active: { primaries: { fielddata: { memory_size_in_bytes: 77076457764, evictions: 0, fields: { commentsCount: { memory_size_in_bytes: 2416090508