We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

How to remove count from select aggregations?

Answered
talha asked on March 6, 2022

3 answers

Public
Maksym Diachenko Maksym Diachenko Flexmonster March 7, 2022

Hello!

Thank you for your question.

Removing the aggregations is possible with the aggregations property of a mapping object. This property contains the array of aggregations, that will be available for a specific field. Check out this example of aggregations usage.
Please note that this feature only allows you to specify which aggregations should be included. Therefore, you will need to define your own list of aggregations without the "count". Please find the list of available aggregations here: https://www.flexmonster.com/doc/support-more-aggregations/.

Please let us know if any questions arise.

Best Regards,
Maksym

Public
Maksym Diachenko Maksym Diachenko Flexmonster March 15, 2022

Hello!

Our team is wondering if you had some time to try the provided solution for removing the "count" aggregation.
We are looking forwards to hearing from you.

Best Regards,
Maksym

Public
Maksym Diachenko Maksym Diachenko Flexmonster March 22, 2022

Hi!

Please let us know if the provided solution for aggregations removal works for your case. We will be glad to hear your feedback.

Best Regards,
Maksym

Please login or Register to Submit Answer