﻿---
title: Source index settings
description: All settings around the _source metadata field. index.source.mode : (Static, string) The source mode for the index. Valid values are synthetic, disabled...
url: https://www.elastic.co/elastic/docs-builder/docs/2510/reference/elasticsearch/index-settings/source
---

# Source index settings
All settings around the _source metadata field.

`index.source.mode`
: (Static, string) The source mode for the index. Valid values are [`synthetic`](/elastic/docs-builder/docs/2510/reference/elasticsearch/mapping-reference/mapping-source-field#synthetic-source), [`disabled`](/elastic/docs-builder/docs/2510/reference/elasticsearch/mapping-reference/mapping-source-field#disable-source-field) or `stored`. Defaults to `stored`. The `stored` source mode always stores the source metadata field on disk.

`index.recovery.use_synthetic_source`
: (Static, boolean) If synthetic source mode is used, whether the recovery source should also be synthesized instead of stored to disk. Defaults to `true`. This setting can only be configured if synthetic source mode is enabled.

`index.mapping.synthetic_source_keep`
: (Static, string) Controls how to retain accuracy of fields at the index level. Valid values are `none` or `arrays`.This is a subset of [synthetic source keep mapping attribute](/elastic/docs-builder/docs/2510/reference/elasticsearch/mapping-reference/mapping-source-field#synthetic-source-keep). Defaults to `arrays` if `index.mode` is `logsdb` or otherwise `none`.