소스 검색

[DOCS] Fixed fielddata regex syntax

Clinton Gormley 12 년 전
부모
커밋
8257aba166
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      docs/reference/index-modules/fielddata.asciidoc

+ 6 - 2
docs/reference/index-modules/fielddata.asciidoc

@@ -85,7 +85,9 @@ expression which matches terms beginning with `#`:
         analyzer:  "whitespace"
         fielddata: {
             filter: {
-                regex: "^#.*"
+                regex: {
+                    pattern: "^#.*"
+                }
             }
         }
     }
@@ -105,7 +107,9 @@ The `frequency` and `regex` filters can be combined:
         analyzer:  "whitespace"
         fielddata: {
             filter: {
-                regex:                "^#.*",
+                regex: {
+                    pattern:          "^#.*",
+                },
                 frequency: {
                     min:              0.001,
                     max:              0.1,