summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Pawlik <dpawlik@redhat.com>2022-09-12 09:31:01 +0200
committerDaniel Pawlik <dpawlik@redhat.com>2022-09-12 09:31:01 +0200
commitfcca09289f548255e0a56f1490936dd7bc21928b (patch)
tree8a44ceb83465d213f6e69ab6581af9fc3f7bfab9
parent5efc9bc0b2c6e14e2c4b85cb573b7650d7870536 (diff)
downloadzuul-fcca09289f548255e0a56f1490936dd7bc21928b.tar.gz
Change custom type field to default one
With the new Elasticsearch does not support custom field type [1]. [1] https://www.elastic.co/guide/en/elasticsearch/reference/7.17/removal-of-types.html#_custom_type_field Change-Id: I0b154da0a4736c6b7758f9936356d5b7097c35ad
-rw-r--r--zuul/driver/elasticsearch/connection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/zuul/driver/elasticsearch/connection.py b/zuul/driver/elasticsearch/connection.py
index eb696edf3..eda15089f 100644
--- a/zuul/driver/elasticsearch/connection.py
+++ b/zuul/driver/elasticsearch/connection.py
@@ -95,7 +95,7 @@ class ElasticsearchConnection(BaseConnection):
def setIndex(self, index):
settings = {
'mappings': {
- 'zuul': {
+ '_doc': {
"properties": self.properties
}
}