Selaa lähdekoodia

[DOC] Fixed flags example incorrect syntax

Binh Ly 11 vuotta sitten
vanhempi
commit
51a6a95de3
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 4 2
      docs/reference/query-dsl/queries/regexp-query.asciidoc

+ 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"
+        }
     }
 }
 --------------------------------------------------