opensearch-project / OpenSearch

🔎 Open source distributed and RESTful search engine.
https://opensearch.org/docs/latest/opensearch/index/
Apache License 2.0
9.87k stars 1.84k forks source link

[Star Tree] [Search] Support for keyword field in term query with metric aggregations #16537

Open sandeshkr419 opened 4 weeks ago

sandeshkr419 commented 4 weeks ago

Is your feature request related to a problem? Please describe

With https://github.com/opensearch-project/OpenSearch/pull/15289, only numeric fields were supported when used to filter results (via term query).

This feature request is to extend the queries to support keyword fields as well.

Depends on https://github.com/opensearch-project/OpenSearch/pull/16233

Describe the solution you'd like

Presently, all non-numeric fields if encountered - delegate the code flow to non star-tree approach. Keyword fields should be parsed accordingly.

Related component

Search:Aggregations

Describe alternatives you've considered

No response

Additional context

No response