浏览代码

Fix docs failure on language analyzers (#30722)

This commit fixes docs failure on language analyzers when compared to the built in analyzers.
The `elision` filters used by the rebuilt language analyzers should be case insensitive to match
the definition of the prebuilt analyzers.

Closes #30557
Jim Ferenczi 7 年之前
父节点
当前提交
bdb79d021a
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      docs/reference/analysis/analyzers/lang-analyzer.asciidoc

+ 4 - 2
docs/reference/analysis/analyzers/lang-analyzer.asciidoc

@@ -378,7 +378,8 @@ PUT /catalan_example
       "filter": {
       "filter": {
         "catalan_elision": {
         "catalan_elision": {
           "type":       "elision",
           "type":       "elision",
-          "articles":   [ "d", "l", "m", "n", "s", "t"]
+          "articles":   [ "d", "l", "m", "n", "s", "t"],
+          "articles_case": true
         },
         },
         "catalan_stop": {
         "catalan_stop": {
           "type":       "stop",
           "type":       "stop",
@@ -1156,7 +1157,8 @@ PUT /italian_example
                 "nell", "sull", "coll", "pell",
                 "nell", "sull", "coll", "pell",
                 "gl", "agl", "dagl", "degl", "negl",
                 "gl", "agl", "dagl", "degl", "negl",
                 "sugl", "un", "m", "t", "s", "v", "d"
                 "sugl", "un", "m", "t", "s", "v", "d"
-          ]
+          ],
+          "articles_case": true
         },
         },
         "italian_stop": {
         "italian_stop": {
           "type":       "stop",
           "type":       "stop",