### CI Link

https://gradle-enterprise.elastic.co/s/a5eowub2bcp5u/console-log?task=:x-pack:plugin:ml:test

### Repro line

./gradlew ':x-pack:plugin:ml:test' --tests "org.elasticsearch.xpack.ml.aggs.frequentitemsets.FrequentItemSetsAggregatorTests.testMixedSingleValues" -Dtests.seed=56BB3CB0A16A5D88 -Dtests.locale=lv-LV -Dtests.timezone=Asia/Calcutta -Druntime.java=17

### Does it reproduce?

Yes

### Applicable branches

main

### Failure history

https://ci-stats.elastic.co/s/jenkins/goto/c28e5460-8139-11ed-8c75-17c4c1b8664c

### Failure excerpt

```
  2> java.lang.IllegalArgumentException: 'host-2' is not an IP string literal.
        at __randomizedtesting.SeedInfo.seed([56BB3CB0A16A5D88:911A158370D678DC]:0)
        at org.elasticsearch.common.network.InetAddresses.forString(InetAddresses.java:343)
        at org.elasticsearch.search.DocValueFormat$IpDocValueFormat.parseBytesRef(DocValueFormat.java:483)
        at org.elasticsearch.search.aggregations.bucket.terms.IncludeExclude.parseForDocValues(IncludeExclude.java:557)
        at org.elasticsearch.search.aggregations.bucket.terms.IncludeExclude$SetAndRegexStringFilter.<init>(IncludeExclude.java:221)
        at org.elasticsearch.search.aggregations.bucket.terms.IncludeExclude.convertToStringFilter(IncludeExclude.java:548)
        at org.elasticsearch.xpack.ml.aggs.frequentitemsets.mr.ItemSetMapReduceValueSource$KeywordValueSource.<init>(ItemSetMapReduceValueSource.java:150)
        at org.elasticsearch.xpack.ml.aggs.frequentitemsets.mr.ItemSetMapReduceAggregator.<init>(ItemSetMapReduceAggregator.java:84)
        at org.elasticsearch.xpack.ml.aggs.frequentitemsets.FrequentItemSetsAggregatorFactory$1.<init>(FrequentItemSetsAggregatorFactory.java:125)
        at org.elasticsearch.xpack.ml.aggs.frequentitemsets.FrequentItemSetsAggregatorFactory.createInternal(FrequentItemSetsAggregatorFactory.java:122)
        at org.elasticsearch.search.aggregations.AggregatorFactory.create(AggregatorFactory.java:81)
        at org.elasticsearch.search.aggregations.AggregatorTestCase.createAggregator(AggregatorTestCase.java:255)
        at org.elasticsearch.search.aggregations.AggregatorTestCase.searchAndReduce(AggregatorTestCase.java:555)
        at org.elasticsearch.search.aggregations.AggregatorTestCase.runWithCrankyCircuitBreaker(AggregatorTestCase.java:476)
        at org.elasticsearch.search.aggregations.AggregatorTestCase.searchAndReduce(AggregatorTestCase.java:459)
        at org.elasticsearch.search.aggregations.AggregatorTestCase.testCase(AggregatorTestCase.java:652)
        at org.elasticsearch.xpack.ml.aggs.frequentitemsets.FrequentItemSetsAggregatorTests.testMixedSingleValues(FrequentItemSetsAggregatorTests.java:339)
```
x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/aggs/frequentitemsets/FrequentItemSetsAggregatorTests.java
),
            new FrequentItemSet(
                Map.of(KEYWORD_FIELD1, List.of("host-1"), KEYWORD_FIELD2, List.of("client-2"), KEYWORD_FIELD3, List.of("type-1")),
                2,
                0.2
            )
        );
        FrequentItemSetsAggregationBuilder builder = new FrequentItemSetsAggregationBuilder(
            "fi",
            fields,
            minimumSupport,
            minimumSetSize,
            size,
            null
        );
        testCase(iw -> {
            iw.addDocument(
                List.of(
                    new SortedSetDocValuesField(KEYWORD_FIELD1, new BytesRef("host-1")),
                    new SortedSetDocValuesField(IP_FIELD, encodeIp("192.168.0.1")),
                    new SortedSetDocValuesField(KEYWORD_FIELD2, new BytesRef("client-1")),
                    new SortedSetDocValuesField(KEYWORD_FIELD3, new BytesRef("type-1")),
                    new SortedNumericDocValuesField(DATE_FIELD, dateFieldType(DATE_FIELD).parse("2022-06-03"))
                )
            );
            iw.addDocument(
                List.of(
                    new SortedSetDocValuesField(KEYWORD_FIELD1, new BytesRef("host-2")),
                    new SortedSetDocValuesField(IP_FIELD, encodeIp("192.168.0.4")),
                    new SortedSetDocValuesField(KEYWORD_FIELD2, new BytesRef("client-1")),