OpenSearch/docs/reference
David Pilato fb10346953 [Mapper] Add `ignore_missing` option to `timestamp`
Related to #9049.

By default, the default value for `timestamp` is `now` which means the date the document was processed by the indexing chain.

You can now reject documents which not provide a `timestamp` value by setting `ignore_missing` to false (default to `true`):

```js
{
    "tweet" : {
        "_timestamp" : {
            "enabled" : true,
            "ignore_missing" : false
        }
    }
}
```

When you update the cluster to 1.5 or master, this index created with 1.4 we automatically migrate an index created with 1.4 to the 1.5 syntax.

Let say you have defined this in elasticsearch 1.4.x:

```js
DELETE test
PUT test
{
  "settings": {
    "number_of_shards": 1,
    "number_of_replicas": 0
  }
}
PUT test/type/_mapping
{
  "type" : {
      "_timestamp" : {
          "enabled" : true,
          "default" : null
      }
  }
}
```

After migration, the mapping become:

```js
{
   "test": {
      "mappings": {
         "type": {
            "_timestamp": {
               "enabled": true,
               "store": false,
               "ignore_missing": false
            },
            "properties": {}
         }
      }
   }
}
```

Closes #8882.
2015-01-20 13:20:05 +01:00
..
analysis Docs: Updated standard token filter docs to indicate true behavior: doing nothing 2015-01-15 21:33:29 +01:00
cat [TEST] Add missing docs and tests for '_cat/segments' 2015-01-09 12:29:11 +01:00
cluster don't mention fixed throttling in the docs 2015-01-14 10:13:10 -05:00
docs Mappings: Remove allow_type_wrapper setting 2015-01-08 09:13:40 -08:00
images [docs] add 2d vis for decay functions and parameters 2014-11-10 10:56:41 +01:00
index-modules Core: change default xlog size from 200 MB to 512 MB 2015-01-19 15:52:29 -05:00
indices Core: switch to auto IO throttle for merges 2015-01-16 13:00:08 -05:00
mapping [Mapper] Add `ignore_missing` option to `timestamp` 2015-01-20 13:20:05 +01:00
migration Rest: remove status code from main action 2015-01-12 12:37:46 +01:00
modules don't mention fixed throttling in the docs 2015-01-14 10:13:10 -05:00
query-dsl Core: Remove terms filter cache. 2015-01-06 17:21:20 +01:00
search Docs: Fix missing comma and boolean true 2015-01-19 21:31:29 +01:00
setup Updates the command to add the repo to not use add-apt-repository, which automatically adds a non-working deb-src line to sources.list. Command now uses echo to write the correct line to sources.list instead. 2015-01-12 21:18:00 +00:00
testing Docs: add randomizedtesting-runner to testing-framework.asciidoc 2014-12-07 01:30:58 +09:00
analysis.asciidoc Add more anchor links to documentation 2013-09-30 13:13:16 -06:00
api-conventions.asciidoc Update api-conventions.asciidoc 2015-01-16 14:26:50 +01:00
cat.asciidoc [TEST] Add missing docs and tests for '_cat/segments' 2015-01-09 12:29:11 +01:00
cluster.asciidoc [DOCS] Fix HTTP endpoints after stats API changes 2014-01-09 11:30:28 +01:00
docs.asciidoc Bulk UDP: Removal. 2014-09-11 09:52:09 +02:00
getting-started.asciidoc Update getting-started.asciidoc 2014-12-17 14:03:38 +01:00
glossary.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
index-modules.asciidoc [core] add best_compression option for Lucene 5.0 2014-12-10 22:13:09 -05:00
index.asciidoc Updated docs to use v1.4.1 as current 2014-11-26 17:18:37 +01:00
indices.asciidoc Add forgotten include for upgrade docs. 2014-10-10 10:55:45 -07:00
mapping.asciidoc Facets: Removal from master. 2014-08-21 10:34:39 +02:00
modules.asciidoc [DOCS] Fixed link to tribe.asciidoc 2014-01-13 22:01:12 +01:00
query-dsl.asciidoc Facets: Removal from master. 2014-08-21 10:34:39 +02:00
search.asciidoc Search Exists API: Checks if any matching documents exist for a given query 2014-07-31 15:42:30 -04:00
setup.asciidoc Update setup.asciidoc 2014-12-30 17:40:51 +01:00
testing.asciidoc [DOCS] Test framework documentation 2013-12-02 18:01:45 +01:00