appbaseio / appbaseio/reactivesearch

Multi-list with "complex" aggregation query

Abierto
#1,530 0 comentarios 1 reacción 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
JavaScript
Estrellas
4.9k
Forks
478
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.