appbaseio / appbaseio/reactivesearch

Multi-list with "complex" aggregation query

Offen
#1,530 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
JavaScript
Sterne
4.9k
Forks
478
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**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
}
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.