File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
stac_fastapi/elasticsearch/stac_fastapi/elasticsearch Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class TransactionsClient(BaseTransactionsClient):
32
32
settings = ElasticsearchSettings ()
33
33
client = settings .create_client
34
34
35
- dynamicTemplates = [
35
+ ES_MAPPINGS_DYNAMIC_TEMPLATES = [
36
36
# Common https://github.com/radiantearth/stac-spec/blob/master/item-spec/common-metadata.md
37
37
{
38
38
"descriptions" : {
@@ -81,9 +81,9 @@ class TransactionsClient(BaseTransactionsClient):
81
81
{"numerics" : {"match_mapping_type" : "long" , "mapping" : {"type" : "float" }}},
82
82
]
83
83
84
- mappings = {
84
+ ES_MAPPINGS = {
85
85
"numeric_detection" : False ,
86
- "dynamic_templates" : dynamicTemplates ,
86
+ "dynamic_templates" : ES_MAPPINGS_DYNAMIC_TEMPLATES ,
87
87
"properties" : {
88
88
"geometry" : {"type" : "geo_shape" },
89
89
"assets" : {"type" : "object" , "enabled" : False },
@@ -109,7 +109,7 @@ def create_item_index(self):
109
109
"""Create the index for Items."""
110
110
self .client .indices .create (
111
111
index = "stac_items" ,
112
- body = {"mappings" : self .mappings },
112
+ body = {"mappings" : self .ES_MAPPINGS },
113
113
ignore = 400 , # ignore 400 already exists code
114
114
)
115
115
You can’t perform that action at this time.
0 commit comments