Skip to content

Conversation

@kwnna15
Copy link

@kwnna15 kwnna15 commented Nov 2, 2024

Adds stats parameter to the count API for the count API. Similar to what already exists in the search API:

(Optional, string) Specific tag of the request for logging and statistical purposes.

Example request:

curl -X GET "http://localhost:9200/my_index/_count" -H 'Content-Type: application/json' -d'
{
  "query": {
    "match_all": {}
  },
  "stats": ["stat_1"]
}'

Closes #67528

@elasticsearchmachine elasticsearchmachine added v9.0.0 needs:triage Requires assignment of a team area label external-contributor Pull request authored by a developer outside the Elasticsearch team labels Nov 2, 2024
@gbanasiak gbanasiak added the :Search Foundations/Search Catch all for Search Foundations label Nov 22, 2024
@elasticsearchmachine elasticsearchmachine added Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch and removed needs:triage Requires assignment of a team area label labels Nov 22, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

@javanna
Copy link
Member

javanna commented Aug 18, 2025

Sorry, this seems to have fallen through the cracks. #132963 is under review which fixes the same issue, hence I am closing this one.

@javanna javanna closed this Aug 18, 2025
@javanna javanna removed the v9.2.0 label Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external-contributor Pull request authored by a developer outside the Elasticsearch team :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement stats parameter for count queries

4 participants