# Datafeed query for Machine Learning, Got more than 10000 patitions

**URL:** <https://discuss.elastic.co/t/datafeed-query-for-machine-learning-got-more-than-10000-patitions/251504>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [October 8, 2020, 8:13pm UTC](https://discuss.elastic.co/t/datafeed-query-for-machine-learning-got-more-than-10000-patitions/251504 "2020-10-08T20:13:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElasticLiver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticliver/32/64869_2.png) [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)\
**Post date:** [October 8, 2020, 8:13pm UTC](https://discuss.elastic.co/t/datafeed-query-for-machine-learning-got-more-than-10000-patitions/251504/1 "2020-10-08T20:13:29Z")

</div>

Hi, Im currently using this query in the datafeed of my jobs in ML:

```auto
{
  "bool": {
    "filter": [
      {
        "bool": {
          "should": [
            {
              "exists": {
                "field": "cpu_per"
              }
            }
          ],
          "minimum_should_match": 1
        }
      },
      {
        "bool": {
          "should": [
            {
              "match_phrase": {
                "grupo.keyword": "Datacenter"
              }
            }
          ],
          "minimum_should_match": 1
        }
      }
    ]
  }

```

but I still get about 18.000 partitions, so I need a way to split the documents to have less than 10000 partitions, and two jobs for the same index and detector, what would be the best way to do this?

---

<div class="post-metadata">

**Author:** ![richcollier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richcollier/32/115035_2.png) [@richcollier](https://discuss.elastic.co/u/richcollier)\
**Post date:** [October 9, 2020, 12:44pm UTC](https://discuss.elastic.co/t/datafeed-query-for-machine-learning-got-more-than-10000-patitions/251504/2 "2020-10-09T12:44:09Z")

</div>

Your question needs a lot more context for us to understand. Please describe your use-case, what you want to accomplish, what the data looks like, what your proposed ML job config is, etc.

What field has 18,000 values?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 6, 2020, 12:44pm UTC](https://discuss.elastic.co/t/datafeed-query-for-machine-learning-got-more-than-10000-patitions/251504/3 "2020-11-06T12:44:20Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
