diff --git a/target_elasticsearch/sinks.py b/target_elasticsearch/sinks.py index 28a07c9..1536482 100644 --- a/target_elasticsearch/sinks.py +++ b/target_elasticsearch/sinks.py @@ -283,6 +283,16 @@ def create_indices(self, indices: Set[str]) -> None: } }, ], + # Some properties may be problematic - it's the case for fields called "properties", + # which usually cause more problems than it solves -> disable dynamic mapping, and + # store the field without indexing the contents + "properties": { + "properties": { + "type": "object", + "dynamic": "false", + "enabled": False + } + } }