Skip to content

Commit

Permalink
[VD-4763] Do not index properties which match "customFields"
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-village committed Aug 19, 2024
1 parent 59b02d8 commit a20e7e0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions target_elasticsearch/sinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,17 @@ 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
# Same for customFields which (eg. used for Ashby), which may be arbitrary
"properties": {
"properties": {
"type": "object",
"dynamic": "false",
"enabled": False
},
"customFields": {
"type": "object",
"dynamic": "false",
"enabled": False
}
}
}
Expand Down

0 comments on commit a20e7e0

Please sign in to comment.