# Elastic Index Scope Parameter

**URL:** <https://discuss.elastic.co/t/elastic-index-scope-parameter/174413>\
**Category:** Elasticsearch\
**Created:** [March 28, 2019, 6:57pm UTC](https://discuss.elastic.co/t/elastic-index-scope-parameter/174413 "2019-03-28T18:57:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincent\_Stevenson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vincent_stevenson/32/48477_2.png) [@Vincent\_Stevenson](https://discuss.elastic.co/u/Vincent_Stevenson)\
**Post date:** [March 28, 2019, 6:57pm UTC](https://discuss.elastic.co/t/elastic-index-scope-parameter/174413/1 "2019-03-28T18:57:05Z")

</div>

I am getting low quality search results because our Json documents have lots of nested fields which many repetitions of words that makes irrelevant Json documents get higher relevance scores than they should.

Is it possible to configure an index's map so that Elastic will only index the Json fields that are at the root level?

I know we can set the parameter in the map: "index" : "false", but I don't want to have to explicitly state this for every field not in the root. Is that possible?

Thanks!

---

<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:** [April 25, 2019, 6:57pm UTC](https://discuss.elastic.co/t/elastic-index-scope-parameter/174413/2 "2019-04-25T18:57:09Z")

</div>

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