Skip to content

Commit f5dee40

Browse files
committed
enable fielddata for _id
as of elastic/elasticsearch#49166 it is disabled by default. The kibana task manager is upset about thi so reenable globally for now.
1 parent 5574743 commit f5dee40

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

scripts/modules/elastic_stack.py

+2
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,8 @@ def __init__(self, **options):
551551

552552
self.environment = self.default_environment + [
553553
java_opts_env, "path.data=/usr/share/elasticsearch/data/" + data_dir]
554+
if self.at_least_version("8.0"):
555+
self.environment.append("indices.id_field_data.enabled=true")
554556
if not self.oss:
555557
xpack_security_enabled = "false"
556558
if self.xpack_secure:

scripts/tests/localsetup_tests.py

+1
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,7 @@ def test_start_master_default(self):
861861
path.repo=/usr/share/elasticsearch/data/backups,
862862
'ES_JAVA_OPTS=-XX:UseAVX=2 -Xms1g -Xmx1g',
863863
path.data=/usr/share/elasticsearch/data/8.0.0,
864+
indices.id_field_data.enabled=true,
864865
xpack.security.authc.anonymous.roles=remote_monitoring_collector,
865866
xpack.security.authc.realms.file.file1.order=0,
866867
xpack.security.authc.realms.native.native1.order=1,

0 commit comments

Comments
 (0)