anchor.diff:    }
   }
   
  -POST my-index-000001/_doc/1
  +POST my-index-000001/_doc/1?refresh
   {
     "is_published": "true" <1>
   }
  
positive.code:     }
    }
  }
  --------------------------------------------------
  
  <1> Indexing a document with `"true"`, which is interpreted as `true`.
  <2> Searching for documents with a JSON `true`.
  
  Aggregations like the <<search-aggregations-bucket-terms-aggregation,`terms`
  aggregation>>  use `1` and `0` for the `key`, and the strings `"true"` and
  `"false"` for the `key_as_string`. Boolean fields when used in scripts,
  return `1` and `0`:
  
  [source,console]
  --------------------------------------------------
  POST my-index-000001/_doc/1
  {
    "is_published": true
  }
  
  POST my-index-000001/_doc/2
  {
    "is_published": false
  }
  
negative.code: For example:
  
  [source,console]
  ----
  PUT my-index-000001
  {
    "mappings": {
  