我怎样才能在策展人项目中放入一个建议字段(ElasticSearch)
How can I put inside a curator project a suggester field (ElasticSearch)
我的问题很简单,我只想知道如何在策展人项目中正确添加字段“suggester”,因为下一个配置不会添加该字段:
5:
action: create_index
description: "Create new index for recipes"
options:
name: '<active-recipes-{now+1d{yyyyMMdd}}>'
continue_if_exception: True
extra_settings:
mappings:
properties:
...
suggest:
type: completion,
analyzer: simple,
search_analyzer: simple
答案是删除逗号,我了解到因为这会破坏生产,所以不要在策展人中放置任何逗号...
5:
action: create_index
description: "Create new index for recipes"
options:
name: '<active-recipes-{now+1d{yyyyMMdd}}>'
continue_if_exception: True
extra_settings:
mappings:
properties:
...
suggest:
type: completion
analyzer: simple
search_analyzer: simple
我的问题很简单,我只想知道如何在策展人项目中正确添加字段“suggester”,因为下一个配置不会添加该字段:
5:
action: create_index
description: "Create new index for recipes"
options:
name: '<active-recipes-{now+1d{yyyyMMdd}}>'
continue_if_exception: True
extra_settings:
mappings:
properties:
...
suggest:
type: completion,
analyzer: simple,
search_analyzer: simple
答案是删除逗号,我了解到因为这会破坏生产,所以不要在策展人中放置任何逗号...
5:
action: create_index
description: "Create new index for recipes"
options:
name: '<active-recipes-{now+1d{yyyyMMdd}}>'
continue_if_exception: True
extra_settings:
mappings:
properties:
...
suggest:
type: completion
analyzer: simple
search_analyzer: simple