Fix docs with `match_pattern` in dynamic templates
This commit is contained in:
parent
9ab168dbf6
commit
e7127c9f6f
|
@ -148,13 +148,14 @@ PUT my_index/my_type/1
|
||||||
[[match-pattern]]
|
[[match-pattern]]
|
||||||
==== `match_pattern`
|
==== `match_pattern`
|
||||||
|
|
||||||
The `match_pattern` parameter behaves just like the `match` parameter, but
|
The `match_pattern` parameter adjusts the behavior of the `match` parameter
|
||||||
supports full Java regular expression matching on the field name instead of
|
such that it supports full Java regular expression matching on the field name
|
||||||
simple wildcards, for instance:
|
instead of simple wildcards, for instance:
|
||||||
|
|
||||||
[source,js]
|
[source,js]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
"match_pattern": "^profit_\d+$"
|
"match_pattern": "regex",
|
||||||
|
"match": "^profit_\d+$"
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
|
||||||
[[path-match-unmatch]]
|
[[path-match-unmatch]]
|
||||||
|
|
Loading…
Reference in New Issue