How to use the elastic-builder.termsAggregation function in elastic-builder

To help you get started, we’ve selected a few elastic-builder examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dpc-sdp / ripple / packages / ripple-nuxt-tide / modules / search / lib / search / services / elasticsearch / lib / querybuilder.js View on Github external
addAgg: function (body, inputField) {
    return body.agg(esb.termsAggregation(inputField.model, inputField.model).order('_key', 'asc').size(30)) // [SDPA-1999] TODO: Size should probaly come from the model
  },