• <small id='dTgP7'></small><noframes id='dTgP7'>

  • <i id='dTgP7'><tr id='dTgP7'><dt id='dTgP7'><q id='dTgP7'><span id='dTgP7'><b id='dTgP7'><form id='dTgP7'><ins id='dTgP7'></ins><ul id='dTgP7'></ul><sub id='dTgP7'></sub></form><legend id='dTgP7'></legend><bdo id='dTgP7'><pre id='dTgP7'><center id='dTgP7'></center></pre></bdo></b><th id='dTgP7'></th></span></q></dt></tr></i><div id='dTgP7'><tfoot id='dTgP7'></tfoot><dl id='dTgP7'><fieldset id='dTgP7'></fieldset></dl></div>

    <tfoot id='dTgP7'></tfoot>

      • <bdo id='dTgP7'></bdo><ul id='dTgP7'></ul>

      <legend id='dTgP7'><style id='dTgP7'><dir id='dTgP7'><q id='dTgP7'></q></dir></style></legend>
      1. elasticsearch 分析器 - 小写和空格标记器

        时间:2023-09-04

        <legend id='tAdjI'><style id='tAdjI'><dir id='tAdjI'><q id='tAdjI'></q></dir></style></legend>
          1. <tfoot id='tAdjI'></tfoot>

                <tbody id='tAdjI'></tbody>

                • <bdo id='tAdjI'></bdo><ul id='tAdjI'></ul>

                  <small id='tAdjI'></small><noframes id='tAdjI'>

                  <i id='tAdjI'><tr id='tAdjI'><dt id='tAdjI'><q id='tAdjI'><span id='tAdjI'><b id='tAdjI'><form id='tAdjI'><ins id='tAdjI'></ins><ul id='tAdjI'></ul><sub id='tAdjI'></sub></form><legend id='tAdjI'></legend><bdo id='tAdjI'><pre id='tAdjI'><center id='tAdjI'></center></pre></bdo></b><th id='tAdjI'></th></span></q></dt></tr></i><div id='tAdjI'><tfoot id='tAdjI'></tfoot><dl id='tAdjI'><fieldset id='tAdjI'></fieldset></dl></div>
                  本文介绍了elasticsearch 分析器 - 小写和空格标记器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  如何创建一个映射来标记空格上的字符串并将其更改为小写以进行索引?

                  How can I create a mapping that will tokenize the string on whitespace and also change it to lowercase for indexing?

                  这是我当前的映射,它通过空格进行标记,我无法理解如何将其小写并搜索(查询)相同...

                  This is my current mapping that tokenizes by whitespace by I cant understand how to lowercase it and also search (query) the same...

                  {
                    "mappings": {
                      "my_type" : {
                        "properties" : {
                          "title" : { "type" : "string", "analyzer" : "whitespace", "tokenizer": "whitespace", "search_analyzer":"whitespace" }
                        }
                      }
                    }
                  }
                  

                  请帮忙...

                  推荐答案

                  我设法编写了一个自定义分析器,并且这个工作......

                  i managed to write a custom analyzer and this works...

                  "settings":{
                    "analysis": {
                      "analyzer": {
                        "lowercasespaceanalyzer": {
                          "type": "custom",
                          "tokenizer": "whitespace",
                          "filter": [
                            "lowercase"
                          ]
                        }
                      }
                    }
                  },
                  
                  
                  "mappings": {
                   "my_type" : {
                    "properties" : {
                      "title" : { "type" : "string", "analyzer" : "lowercasespaceanalyzer", "tokenizer": "whitespace", "search_analyzer":"whitespace", "filter": [
                        "lowercase"
                      ] }
                    }
                   }
                  }
                  

                  这篇关于elasticsearch 分析器 - 小写和空格标记器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:在 JavaScript 中通过 JSON 对象进行类似 Lucene 的搜索 下一篇:如何创建带有“确定"和“取消"选项的对

                  相关文章

                  最新文章

                • <i id='QeaVX'><tr id='QeaVX'><dt id='QeaVX'><q id='QeaVX'><span id='QeaVX'><b id='QeaVX'><form id='QeaVX'><ins id='QeaVX'></ins><ul id='QeaVX'></ul><sub id='QeaVX'></sub></form><legend id='QeaVX'></legend><bdo id='QeaVX'><pre id='QeaVX'><center id='QeaVX'></center></pre></bdo></b><th id='QeaVX'></th></span></q></dt></tr></i><div id='QeaVX'><tfoot id='QeaVX'></tfoot><dl id='QeaVX'><fieldset id='QeaVX'></fieldset></dl></div>

                  1. <small id='QeaVX'></small><noframes id='QeaVX'>

                      <bdo id='QeaVX'></bdo><ul id='QeaVX'></ul>
                  2. <tfoot id='QeaVX'></tfoot>

                    1. <legend id='QeaVX'><style id='QeaVX'><dir id='QeaVX'><q id='QeaVX'></q></dir></style></legend>