# Difference between enabled and index parameters

**URL:** <https://discuss.elastic.co/t/difference-between-enabled-and-index-parameters/197564>\
**Category:** Elasticsearch\
**Created:** [August 30, 2019, 5:54pm UTC](https://discuss.elastic.co/t/difference-between-enabled-and-index-parameters/197564 "2019-08-30T17:54:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pokaleshrey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pokaleshrey/32/48680_2.png) [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Post date:** [August 30, 2019, 5:54pm UTC](https://discuss.elastic.co/t/difference-between-enabled-and-index-parameters/197564/1 "2019-08-30T17:54:14Z")

</div>

I wanted to know some differences between the working of enabled and index parameters.  
Ver: 7.1.1  
**Case A:**

```
"myfield": {
				"enabled": false,
				"properties": {
					"value": {
						"type": "keyword"
					},
					"key": {
						"type": "keyword"
					}
				}
			}

```

**Case B:**

```
"myfield": {
				"properties": {
					"value": {
						"type": "keyword",
						"index": false
					},
					"key": {
						"type": "keyword",
						"index": false
					}
				}
			}

```

On indexing a document, the the "terms\_memory\_in\_bytes" shows same number of bytes in both cases.

**Query 1:**  
Case A: Term vectors are generated for both key and value fields. But these fields are not queryble. Where does these tokens come from and why are generated ? Do they consume memory on heap ?  
Case B: Term vectors are not generated for key and value fields.

**Query 2:**  
What is difference between enabled and index paramters for above cases ?

---

<div class="post-metadata">

**Author:** ![pokaleshrey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pokaleshrey/32/48680_2.png) [@pokaleshrey](https://discuss.elastic.co/u/pokaleshrey)\
**Post date:** [September 4, 2019, 6:36am UTC](https://discuss.elastic.co/t/difference-between-enabled-and-index-parameters/197564/2 "2019-09-04T06:36:30Z")

</div>

Any lead on this topic please ?

---

<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:** [October 2, 2019, 6:48am UTC](https://discuss.elastic.co/t/difference-between-enabled-and-index-parameters/197564/3 "2019-10-02T06:48:12Z")

</div>

Closed on October 2, 2019, 6:48am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
