Browse Source

Fix typo in templates.asciidoc

The doc mentions match_path in one place but the correct syntax is path_match which is mentioned everywhere else. Using the wrong string leads to errors because the mapping becomes too greedy, and matches things it shouldn't.
Ibrahim Awwal 9 years ago
parent
commit
5121060e75
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/reference/mapping/dynamic/templates.asciidoc

+ 1 - 1
docs/reference/mapping/dynamic/templates.asciidoc

@@ -33,7 +33,7 @@ Dynamic templates are specified as an array of named objects:
   ]
 --------------------------------------------------
 <1> The template name can be any string value.
-<2> The match conditions can include any of : `match_mapping_type`, `match`, `match_pattern`, `unmatch`, `match_path`, `unmatch_path`.
+<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.