我已经使用ElasticSearchJavaAPI创建了一个ElasticSearch索引。现在,我想对存储在此索引中的数据执行一些聚合,但我得到以下错误:
"reason": "Fielddata is disabled on text fields by default.正如在这篇中所建议的,为了解决这个问题,我应该在"item“文本字段中启用fielddata,但是如何使用ElasticSearch
对于那些知道Presto API for plugins的人来说是个问题。 我实现了BigQuery插件。BigQuery支持struct类型,在Presto中可以表示为RowType类。createBlockBuilder中创建RowBlockBuilder,它具有RowBlockBuilder::appendStructure方法,该方法只需要接受AbstractSingleRowBlock类的实例这意味着在我的Presto的RecordCursor BigQueryRecordCursor::get