索引时,是否有方法将字段的一部分复制到ES中的新字段中:
我想要这样的东西:
{
"key": "123",
"type": "novel",
"description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.",
"preview": "Lorem Ipsum is simply dummy..."
}
基本上“预览”是“描述”的副本,但只有几个第一个字符。我检查了Elasticsearch中的copy_to方法,但没有这样做的选项。
1条答案
按热度按时间9jyewag01#
这可以通过摄取管道和script processor
回复:
作为替代方案,您也可以采用固定数量的单词,而不是采用固定数量的字符。很容易改变。