elastic / search-ui

Search UI. Libraries for the fast development of modern, engaging search experiences.
https://docs.elastic.co/search-ui
Apache License 2.0
1.92k stars 368 forks source link

Aggregation in Query Config #972

Closed VladislavTominin closed 1 year ago

VladislavTominin commented 1 year ago

[Please read the following before posting:

The Enterprise Search team at Elastic maintains this library and are happy to help. Try posting your question to the Elastic Enterprise Search discuss forums. Be sure to mention that you're using Search UI and also let us know what backend your using; whether it's App Search, Site Search, Workplace Search, Elasticsearch, or something else entirely. ]

Hello! In one of the projects we are using ElasticsearchAPIConnector and we would like to be able to aggregate query results by name, as can be done for example by calling the following command:

GET /my-index-000001/_search
{
  "aggs": {
    "my-agg-name": {
      "terms": {
        "field": "my-field"
      }
    }
  }
}

Is it possible at the moment? I looked at the Query Config definition and didn't find the field I needed.

(https://github.com/elastic/search-ui/blob/c35ca17eaa2f561a1a1823ba3aa35a90dae0600b/packages/search-ui/src/types/index.ts#L157)

Thanks!

botelastic[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Is this issue still important to you? If so, please leave a comment and let us know. As always, thank you for your contributions.