Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Multi-list with "complex" aggregation query

未关闭
#1,530 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
javascript
领域
frontend, search

调研方向

从 issue 中链接的 MultiList extension 文档开始,检查它如何构建 aggregation query。将该行为与提供的嵌套、过滤 aggregation 示例进行比较;当有文档记录的组件方法能够在同一字段上表达单独的 aggregation 时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

enhancement

Affected Projects
Vue.JS

Is your feature request related to a problem? Please describe.
I would like to create separate aggregations on the same field using nested aggregations with a filter.

Describe the solution you'd like
Either an expansion of the multi-list component that allows for more control over the aggregation query or a separate component that can handle this use-case.

Describe alternatives you've considered
I have looked into extending the MultiList component conform https://docs.appbase.io/docs/reactivesearch/vue/list/MultiList/#extending. However this does not provide enough control.

Additional context
Hereby a sample query:

GET _search
{
  "aggs": {
    "continent": {
      "nested": {
        "path": "subjects"
      },
      "aggs": {
        "inner": {
          "filter": {
            "bool": {
              "must": [
                {
                  "term": {
                    "subjects.typeId.keyword": "subjectType:sYdC11MLUoxrAGt24dGw"
                  }
                }
              ]
            }
          },
          "aggs": {
            "subjects.id.keyword": {
              "terms": {
                "field": "subjects.name.keyword",
                "size": 10,
                "order": {
                  "_term": "asc"
                }
              }
            }
          }
        }
      }
    }
  },
  "size": 0
}
主要语言
JavaScript
星标
4.9k
派生
479
平均合并
4 小时 43 分钟
30 天内合并 PR
3

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

appbaseio/reactivesearch 的其他 Issue

查看 appbaseio/reactivesearch 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。