Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

145
Visualizações
How to implement pagination in composite aggregation after removing some buckets based on condition by BucketSelectorAggregation

I am trying to implement the inbuilt pagination feature available in elastic search composite aggregation on aggregated data. This works perfectly fine until we are not removing certain buckets based on conditions of aggregated fields. To remove buckets I am using BucketSelectorAggregation.

I understand that composite aggregation doesn't support pipeline aggregation fully and the reason for the issue is after_key and size always consider the aggregation response for pagination, rather than filtred aggregated data.

If anybody can help on this to apply the pagination on the aggregated filtered bucket using some kind of filter or other option without using pipeline aggregation that would be great.

Example :

id sum

1 100
2 200
3 400
4 500
5 100

Query after aggregation to get 2 records

Result

id sum

1 100
2 200

Query after aggregation and BucketSelectorAggregation to get 2 records where sum value 100

Result

1 100

Expected Result

1 100
5 100

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda