# Is enabling docValues and disabling index possible

**URL:** <https://discuss.elastic.co/t/is-enabling-docvalues-and-disabling-index-possible/21021>\
**Category:** Elasticsearch\
**Created:** [December 2, 2014, 4:55am UTC](https://discuss.elastic.co/t/is-enabling-docvalues-and-disabling-index-possible/21021 "2014-12-02T04:55:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vineeth\_mohan\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vineeth_mohan_2/32/747_2.png) [@vineeth\_mohan\_2](https://discuss.elastic.co/u/vineeth_mohan_2)\
**Post date:** [December 2, 2014, 4:55am UTC](https://discuss.elastic.co/t/is-enabling-docvalues-and-disabling-index-possible/21021/1 "2014-12-02T04:55:02Z")

</div>

Hi ,

I have a situation where a field is only used for aggregation , its never  
used for searching.  
In such cases , it doesn't make sense for this field to go to lucene  
reverse index.  
Rather if it can be only maintained in fieldData or docValues alone . that  
would save me some good amount of space and might optimize performance.

Is this possible ?

Thanks  
Vineeth

--  
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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGdPd5kxgex5BwLVxz6N8gwAGCmUwSiBRPuXAu7PbqCGT%2BH0kA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5kxgex5BwLVxz6N8gwAGCmUwSiBRPuXAu7PbqCGT%2BH0kA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [December 3, 2014, 1:37pm UTC](https://discuss.elastic.co/t/is-enabling-docvalues-and-disabling-index-possible/21021/2 "2014-12-03T13:37:46Z")

</div>

Yes, you can have a field that is not indexed but has doc values. In that  
case, elasticsearch will build columnar storage for that field, but no  
inverted index.

On Tue, Dec 2, 2014 at 5:55 AM, vineeth mohan [vm.vineethmohan@gmail.com](mailto:vm.vineethmohan@gmail.com)  
wrote:

> Hi ,
> 
> I have a situation where a field is only used for aggregation , its never  
> used for searching.  
> In such cases , it doesn't make sense for this field to go to lucene  
> reverse index.  
> Rather if it can be only maintained in fieldData or docValues alone . that  
> would save me some good amount of space and might optimize performance.
> 
> Is this possible ?
> 
> Thanks  
> Vineeth
> 
> --  
> 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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAGdPd5kxgex5BwLVxz6N8gwAGCmUwSiBRPuXAu7PbqCGT%2BH0kA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5kxgex5BwLVxz6N8gwAGCmUwSiBRPuXAu7PbqCGT%2BH0kA%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAGdPd5kxgex5BwLVxz6N8gwAGCmUwSiBRPuXAu7PbqCGT%2BH0kA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5kxgex5BwLVxz6N8gwAGCmUwSiBRPuXAu7PbqCGT%2BH0kA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Adrien Grand

--  
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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j5Re03w2MtxEtc\_N\_Xr%2Bua5bA7-Jk9c9ZotOA0qvBNB-g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j5Re03w2MtxEtc_N_Xr%2Bua5bA7-Jk9c9ZotOA0qvBNB-g%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:46am UTC](https://discuss.elastic.co/t/is-enabling-docvalues-and-disabling-index-possible/21021/3 "2017-07-06T00:46:14Z")

</div>


