我已经使用ElasticSearchJavaAPI创建了一个ElasticSearch索引。现在,我想对存储在此索引中的数据执行一些聚合,但我得到以下错误:
"reason": "Fielddata is disabled on text fields by default.正如在这篇中所建议的,为了解决这个问题,我应该在"item“文本字段中启用fielddata,但是如何使用
我知道搜索任务可以从Elasticsearch中的倒排索引中受益。 但我不明白聚合任务如何从倒排索引中受益。如果我想得到年龄= 28的平均体重,使用倒排索引的elasticsearch的步骤应该如下所示 1. get the doc list of age = 28 which may looks likeAdd the weight and divide by the number of reco