Skip to content

Commit

Permalink
fixed a consistent typo in type name
Browse files Browse the repository at this point in the history
fixed a consistent typo causing

```
{
  "error": {
    "root_cause": [
      {
        "type": "invalid_type_name_exception",
        "reason": "mapping type name [_doc] can't start with '_'"
      }
    ],
    "type": "invalid_type_name_exception",
    "reason": "mapping type name [_doc] can't start with '_'"
  },
  "status": 400
}
```

s/_doc/doc
  • Loading branch information
Antonio Bonuccelli authored May 3, 2018
1 parent 21403a2 commit 489f39a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions docs/reference/mapping/dynamic/templates.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ could use the following template:
PUT my_index
{
"mappings": {
"_doc": {
"doc": {
"dynamic_templates": [
{
"integers": {
Expand Down Expand Up @@ -90,7 +90,7 @@ PUT my_index
}
}
PUT my_index/_doc/1
PUT my_index/doc/1
{
"my_integer": 5, <1>
"my_string": "Some string" <2>
Expand All @@ -117,7 +117,7 @@ fields:
PUT my_index
{
"mappings": {
"_doc": {
"doc": {
"dynamic_templates": [
{
"longs_as_strings": {
Expand All @@ -134,7 +134,7 @@ PUT my_index
}
}
PUT my_index/_doc/1
PUT my_index/doc/1
{
"long_num": "5", <1>
"long_text": "foo" <2>
Expand Down Expand Up @@ -173,7 +173,7 @@ top-level `full_name` field, except for the `middle` field:
PUT my_index
{
"mappings": {
"_doc": {
"doc": {
"dynamic_templates": [
{
"full_name": {
Expand All @@ -190,7 +190,7 @@ PUT my_index
}
}
PUT my_index/_doc/1
PUT my_index/doc/1
{
"name": {
"first": "Alice",
Expand All @@ -214,7 +214,7 @@ field, and disables <<doc-values,`doc_values`>> for all non-string fields:
PUT my_index
{
"mappings": {
"_doc": {
"doc": {
"dynamic_templates": [
{
"named_analyzers": {
Expand All @@ -240,7 +240,7 @@ PUT my_index
}
}
PUT my_index/_doc/1
PUT my_index/doc/1
{
"english": "Some English text", <1>
"count": 5 <2>
Expand Down Expand Up @@ -268,7 +268,7 @@ you will have to search on the exact same value that was indexed.
PUT my_index
{
"mappings": {
"_doc": {
"doc": {
"dynamic_templates": [
{
"strings_as_keywords": {
Expand Down Expand Up @@ -298,7 +298,7 @@ before 5.0):
PUT my_index
{
"mappings": {
"_doc": {
"doc": {
"dynamic_templates": [
{
"strings_as_text": {
Expand Down Expand Up @@ -326,7 +326,7 @@ disable the storage of these scoring factors in the index and save some space.
PUT my_index
{
"mappings": {
"_doc": {
"doc": {
"dynamic_templates": [
{
"strings_as_keywords": {
Expand Down Expand Up @@ -367,7 +367,7 @@ maybe gain some indexing speed:
PUT my_index
{
"mappings": {
"_doc": {
"doc": {
"dynamic_templates": [
{
"unindexed_longs": {
Expand Down

0 comments on commit 489f39a

Please sign in to comment.