Ver código fonte

[DOC] Fixed flags example incorrect syntax

Binh Ly 11 anos atrás
pai
commit
51a6a95de3

+ 4 - 2
docs/reference/query-dsl/queries/regexp-query.asciidoc

@@ -39,8 +39,10 @@ You can also use special flags
 --------------------------------------------------
 {
     "regexp":{
-        "name.first": "s.*y",
-        "flags" : "INTERSECTION|COMPLEMENT|EMPTY"
+        "name.first": {
+            "value": "s.*y",
+            "flags" : "INTERSECTION|COMPLEMENT|EMPTY"
+        }
     }
 }
 --------------------------------------------------