# What index.cache.field.max\_size in practice means?

**URL:** <https://discuss.elastic.co/t/what-index-cache-field-max-size-in-practice-means/10274>\
**Category:** Elasticsearch\
**Created:** [January 9, 2013, 8:06am UTC](https://discuss.elastic.co/t/what-index-cache-field-max-size-in-practice-means/10274 "2013-01-09T08:06:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bohemer\_2](https://avatars.discourse-cdn.com/v4/letter/b/439d5e/32.png) [@bohemer\_2](https://discuss.elastic.co/u/bohemer_2)\
**Post date:** [January 9, 2013, 8:06am UTC](https://discuss.elastic.co/t/what-index-cache-field-max-size-in-practice-means/10274/1 "2013-01-09T08:06:00Z")

</div>

Hello,

I`m not so familiar with lucene index data structure, i read in the  
documentation that it is max size (count, not byte size) of the cache (per  
search segment in a shard)  
I would like to ask this in a real live usage what means?  
If i have an index with routing implemented and on a shard I have 1M  
documents, a query with 7 facets, it returns 10k documents, then in worst  
case cenario all the 10k document is saved in the same lucene segment then  
the index.cache.field.max\_size sould be 10kX7 ?

Thank U.

--

---

<div class="post-metadata">

**Author:** ![Jerome\_Gagnon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jerome_gagnon/32/2178_2.png) [@Jerome\_Gagnon](https://discuss.elastic.co/u/Jerome_Gagnon)\
**Post date:** [January 9, 2013, 3:19pm UTC](https://discuss.elastic.co/t/what-index-cache-field-max-size-in-practice-means/10274/2 "2013-01-09T15:19:43Z")

</div>

+1 would like to know the answer to this too.

On Wednesday, January 9, 2013 3:06:00 AM UTC-5, bohemer wrote:

> Hello,
> 
> I`m not so familiar with lucene index data structure, i read in the  
> documentation that it is max size (count, not byte size) of the cache (per  
> search segment in a shard)  
> I would like to ask this in a real live usage what means?  
> If i have an index with routing implemented and on a shard I have 1M  
> documents, a query with 7 facets, it returns 10k documents, then in worst  
> case cenario all the 10k document is saved in the same lucene segment then  
> the index.cache.field.max\_size sould be 10kX7 ?
> 
> Thank U.

--

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:57am UTC](https://discuss.elastic.co/t/what-index-cache-field-max-size-in-practice-means/10274/3 "2017-07-06T02:57:14Z")

</div>

Closed on July 6, 2017, 2:57am UTC


