加载中

显示每个实体的最相关文档

使用 按实体显示最相关的文档 (Top hits per entity) 来显示每个实体最相关的文档,例如每个航线的最新 GPS 轨迹。为了获取这些数据,Elasticsearch 首先使用 词项聚合 (terms aggregation) 对您的数据进行分组,然后使用 top hits 度量聚合 (top hits metric aggregation) 根据排序顺序为每个条目累积最相关的文档。

启用 top hits

  1. 点击 添加图层 (Add layer),然后选择 按实体显示最相关的文档 (Top hits per entity) 图层。
  2. 配置 数据视图 (Data view)地理空间字段 (Geospatial field)
  3. 实体 (Entity) 设置为标识文档中实体的字段。该字段将用于词项聚合,将您的文档分组到实体存储桶 (entity buckets) 中。
  4. 设置 每个实体的文档数 (Documents per entity) 以配置每个实体累积的最大文档数。此设置受 index.max_inner_result_window 索引设置的限制,该设置默认为 100。
top hits
© . This website operates independently and is not affiliated with or endorsed by Elasticsearch B.V. All brand names, logos, and trademarks are the property of their respective owners.