-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(elasticsearch): Force refresh when fetching entity tags from Fron…
…t50 (#2149) `elasticsearch_index_template.json` is the index template that should be applied in elastic search.
- Loading branch information
Showing
2 changed files
with
91 additions
and
1 deletion.
There are no files selected for viewing
90 changes: 90 additions & 0 deletions
90
clouddriver-elasticsearch/elasticsearch_index_template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{ | ||
"order": 0, | ||
"template": "tags_v*", | ||
"settings": { | ||
"index": { | ||
"number_of_shards": "6", | ||
"number_of_replicas": "2", | ||
"refresh_interval": "1s" | ||
} | ||
}, | ||
"mappings": { | ||
"_default_": { | ||
"dynamic": "false", | ||
"dynamic_templates": [ | ||
{ | ||
"tags_template": { | ||
"path_match": "tagsMetadata", | ||
"mapping": { | ||
"index": "no" | ||
} | ||
} | ||
}, | ||
{ | ||
"entityRef_template": { | ||
"path_match": "entityRef.*", | ||
"mapping": { | ||
"index": "not_analyzed" | ||
} | ||
} | ||
} | ||
], | ||
"properties": { | ||
"entityRef": { | ||
"properties": { | ||
"accountId": { | ||
"index": "not_analyzed", | ||
"type": "string" | ||
}, | ||
"application": { | ||
"index": "not_analyzed", | ||
"type": "string" | ||
}, | ||
"entityType": { | ||
"index": "not_analyzed", | ||
"type": "string" | ||
}, | ||
"cloudProvider": { | ||
"index": "not_analyzed", | ||
"type": "string" | ||
}, | ||
"entityId": { | ||
"index": "not_analyzed", | ||
"type": "string" | ||
}, | ||
"region": { | ||
"index": "not_analyzed", | ||
"type": "string" | ||
}, | ||
"account": { | ||
"index": "not_analyzed", | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"tags": { | ||
"type": "nested", | ||
"properties": { | ||
"valueType": { | ||
"index": "not_analyzed", | ||
"type": "string" | ||
}, | ||
"name": { | ||
"index": "not_analyzed", | ||
"type": "string" | ||
}, | ||
"namespace": { | ||
"index": "not_analyzed", | ||
"type": "string" | ||
}, | ||
"value": { | ||
"index": "not_analyzed", | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"aliases": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters