summaryrefslogtreecommitdiff
path: root/docs/reference/mapping
diff options
context:
space:
mode:
authorNik Everett <nik9000@gmail.com>2017-05-04 21:01:14 -0400
committerNik Everett <nik9000@gmail.com>2017-05-04 21:01:14 -0400
commita01f8462260c3e985660ffab063726c0ff6b69bf (patch)
tree4cc2d3beb0083396483e86f1b3501cd5c7aa3645 /docs/reference/mapping
parent559bec23cca3ad70aa251f163834d18b6bbd2686 (diff)
CONSOLEify a few more docs
Adds CONSOLE to cross-cluster-search docs but skips them for testing because we don't have a second cluster set up. This gets us the `VIEW IN CONSOLE` and `COPY AS CURL` links and makes sure that they are valid yaml (not json, technically) but doesn't get testing. Which is better than we had before. Adds CONSOLE to the dynamic templates docs and ingest-node docs. The ingest-node docs contain a *ton* of non-console snippets. We might want to convert them to full examples later, but that can be a separate thing. Relates to #18160
Diffstat (limited to 'docs/reference/mapping')
-rw-r--r--docs/reference/mapping/dynamic/templates.asciidoc7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/reference/mapping/dynamic/templates.asciidoc b/docs/reference/mapping/dynamic/templates.asciidoc
index eb9eb1a60d..90fc5de5c4 100644
--- a/docs/reference/mapping/dynamic/templates.asciidoc
+++ b/docs/reference/mapping/dynamic/templates.asciidoc
@@ -32,6 +32,7 @@ Dynamic templates are specified as an array of named objects:
...
]
--------------------------------------------------
+// NOTCONSOLE
<1> The template name can be any string value.
<2> The match conditions can include any of : `match_mapping_type`, `match`, `match_pattern`, `unmatch`, `path_match`, `path_unmatch`.
<3> The mapping that the matched field should use.
@@ -94,7 +95,6 @@ PUT my_index/my_type/1
"my_integer": 5, <1>
"my_string": "Some string" <2>
}
-
--------------------------------------------------
// CONSOLE
<1> The `my_integer` field is mapped as an `integer`.
@@ -156,6 +156,7 @@ instead of simple wildcards, for instance:
"match_pattern": "regex",
"match": "^profit_\d+$"
--------------------------------------------------
+// NOTCONSOLE
[[path-match-unmatch]]
==== `path_match` and `path_unmatch`
@@ -282,6 +283,7 @@ PUT my_index
}
}
--------------------------------------------------
+// CONSOLE
===== `text`-only mappings for strings
@@ -311,6 +313,7 @@ PUT my_index
}
}
--------------------------------------------------
+// CONSOLE
===== Disabled norms
@@ -345,6 +348,7 @@ PUT my_index
}
}
--------------------------------------------------
+// CONSOLE
The sub `keyword` field appears in this template to be consistent with the
default rules of dynamic mappings. Of course if you do not need them because
@@ -388,6 +392,7 @@ PUT my_index
}
}
--------------------------------------------------
+// CONSOLE
<1> Like the default dynamic mapping rules, doubles are mapped as floats, which
are usually accurate enough, yet require half the disk space.