如何在ElasticSearch中添加语言

dly7yett  于 2023-06-21  发布在  ElasticSearch
关注(0)|答案(1)|浏览(113)

我想在我的ElasticSearch中添加多种语言,以便我可以使用多种语言。语言喜欢
“缅甸人”“乌克兰人”“高棉人”“越南人”
我使用的是Elastic-Search 8.3.3和Kibana 8.3.3
感谢您的评分

b4qexyjb

b4qexyjb1#

由于您没有发布详细的索引Map和文档,也许这个Map会有所帮助

{
  "article_index" : {
    "mappings" : {
      "properties" : {
        "title" : {
          "type" : "nested",
          "properties" : {
            "ukrainian" : {
              "type" : "text"
            },
            "brazilian" : {
              "type" : "text"
            }
          }
        }
      }
    }
  }
}

搜索时,您可以指向所需的语言字段

相关问题