【发布时间】:2017-03-03 07:34:48
【问题描述】:
我目前正在使用 Elastic4s v5.0,它仍然具有用于以多种方式索引字段的多字段类型。
elasticClient.execute(createIndex("foo") mappings (
mapping("bar").as(
multiField("baz").as(
textField("baz") analyzer myAnalyzer,
textField("original") index NotAnalyzed
)
)
)
但是,我收到以下错误:
No handler for type [multi_field] declared on field []
答案ElasticSearch 5: MapperParserException with multi_field 和此处的文档https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html 说要改用“字段”,但我在 elastic4s 中找不到如何做到这一点。
【问题讨论】:
标签: scala elasticsearch elastic4s