From e92c62bdf8dbe8010a85cb92e2fb0b74f72021cf Mon Sep 17 00:00:00 2001 From: James Rodewig <40268737+jrodewig@users.noreply.github.com> Date: Fri, 21 Aug 2020 12:43:41 -0400 Subject: [PATCH] [7.x] [DOCS] Fix query example for wildcard datatype (#61398) (#61431) Co-authored-by: jessepeixoto --- docs/reference/mapping/types/wildcard.asciidoc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/reference/mapping/types/wildcard.asciidoc b/docs/reference/mapping/types/wildcard.asciidoc index 1dd46f9d895..dd887e24109 100644 --- a/docs/reference/mapping/types/wildcard.asciidoc +++ b/docs/reference/mapping/types/wildcard.asciidoc @@ -37,12 +37,14 @@ PUT my-index-000001/_doc/1 "my_wildcard" : "This string can be quite lengthy" } -POST my-index-000001/_doc/_search +GET my-index-000001/_search { "query": { - "wildcard" : { - "value": "*quite*lengthy" - } + "wildcard": { + "my_wildcard": { + "value": "*quite*lengthy" + } + } } }