# /\_count don't return valid result

**URL:** <https://discuss.elastic.co/t/count-dont-return-valid-result/367052>\
**Category:** Elasticsearch\
**Created:** [September 24, 2024, 2:07pm UTC](https://discuss.elastic.co/t/count-dont-return-valid-result/367052 "2024-09-24T14:07:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_M\_Oliveira](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_m_oliveira/32/137833_2.png) [@Daniel\_M\_Oliveira](https://discuss.elastic.co/u/Daniel_M_Oliveira)\
**Post date:** [September 24, 2024, 2:07pm UTC](https://discuss.elastic.co/t/count-dont-return-valid-result/367052/1 "2024-09-24T14:07:26Z")

</div>

Hi, First of all, sorry for my question.  
I recently started to work with elastic.  
I think it is a simple question, but I can't found an explation for it.

I have this indexes.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/8/78b6207523c5f1cbc03076771485d64a941924be.png)

When I run /prd-pdl-core-labels/\_count or /prd-pdl-core-attributes/\_count I receive the value that is showed in docs.count  
eg,

```auto
/prd-pdl-core-labels/_count?q=*:*
{
  "count": 1340,
  "_shards": {
    "total": 1,
    "successful": 1,
    "skipped": 0,
    "failed": 0
  }
}

```

But when I run /prd-pdl-core-products/\_count I always receive count:1000.

```auto
/prd-pdl-core-products/_count?q=*:*
{
  "count": 1000,
  "_shards": {
    "total": 1,
    "successful": 1,
    "skipped": 0,
    "failed": 0
  }
}

```

Why ? I need to configure something to this index? This index has the same configuration from anothers.  
What I'm doing wrong ?

I was under the impression that count should return the same value as docs.count.

If not, how do I get the total?  
I tried a lot of different things. track\_total\_hits, max\_result\_window etc but I always receive 1000 for this index.
