小编ejr*_*ley的帖子

Elasticsearch"找不到分析器"

我在索引上创建了一个同义词分析器:

curl http://localhost:9200/test_index/_settings?pretty
{
  "test_index" : {
    "settings" : {
      "index" : {
        "creation_date" : "1429175067557",
        "analyzer" : {
          "search_synonyms" : {
            "filter" : [ "lowercase", "search_synonym_filter" ],
            "tokenizer" : "standard"
          }
        },
        "uuid" : "Zq6Id8xsRWGofJrNCb7M8w",
        "number_of_replicas" : "1",
        "analysis" : {
          "filter" : {
            "search_synonym_filter" : {
              "type" : "synonym",
              "synonyms" : [ "sneakers,pumps" ]
            }
          }
        },
        "number_of_shards" : "5",
        "version" : {
          "created" : "1050099"
        }
      }
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

但是当我尝试将它与映射一起使用时:

curl -XPUT 'http://localhost:9200/test_index/_mapping/product_catalog?pretty' -H "Content-Type: application/json" …
Run Code Online (Sandbox Code Playgroud)

mapping analyzer elasticsearch

3
推荐指数
1
解决办法
5797
查看次数

标签 统计

analyzer ×1

elasticsearch ×1

mapping ×1