sfeos-helpers 6.2.1__tar.gz → 6.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/PKG-INFO +41 -31
  2. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/README.md +39 -20
  3. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/setup.py +1 -1
  4. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/sfeos_helpers.egg-info/PKG-INFO +42 -32
  5. sfeos_helpers-6.3.0/sfeos_helpers.egg-info/requires.txt +1 -0
  6. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/sfeos_helpers.egg-info/top_level.txt +0 -1
  7. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/database/utils.py +3 -3
  8. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/mappings.py +4 -2
  9. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/version.py +1 -1
  10. sfeos_helpers-6.2.1/sfeos_helpers.egg-info/requires.txt +0 -1
  11. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/setup.cfg +0 -0
  12. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/sfeos_helpers.egg-info/SOURCES.txt +0 -0
  13. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/sfeos_helpers.egg-info/dependency_links.txt +0 -0
  14. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/sfeos_helpers.egg-info/not-zip-safe +0 -0
  15. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/aggregation/__init__.py +0 -0
  16. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/aggregation/client.py +0 -0
  17. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/aggregation/format.py +0 -0
  18. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/database/__init__.py +0 -0
  19. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/database/datetime.py +0 -0
  20. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/database/document.py +0 -0
  21. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/database/index.py +0 -0
  22. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/database/mapping.py +0 -0
  23. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/database/query.py +0 -0
  24. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/filter/__init__.py +0 -0
  25. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/filter/client.py +0 -0
  26. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/filter/cql2.py +0 -0
  27. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/filter/transform.py +0 -0
  28. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/models/patch.py +0 -0
  29. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/search_engine/__init__.py +0 -0
  30. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/search_engine/base.py +0 -0
  31. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/search_engine/factory.py +0 -0
  32. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/search_engine/index_operations.py +0 -0
  33. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/search_engine/inserters.py +0 -0
  34. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/search_engine/managers.py +0 -0
  35. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/search_engine/selection/__init__.py +0 -0
  36. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/search_engine/selection/base.py +0 -0
  37. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/search_engine/selection/cache_manager.py +0 -0
  38. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/search_engine/selection/factory.py +0 -0
  39. {sfeos_helpers-6.2.1 → sfeos_helpers-6.3.0}/stac_fastapi/sfeos_helpers/search_engine/selection/selectors.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.1
2
2
  Name: sfeos_helpers
3
- Version: 6.2.1
3
+ Version: 6.3.0
4
4
  Summary: Helper library for the Elasticsearch and Opensearch stac-fastapi backends.
5
5
  Home-page: https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch
6
6
  License: MIT
@@ -15,15 +15,6 @@ Classifier: Programming Language :: Python :: 3.13
15
15
  Classifier: License :: OSI Approved :: MIT License
16
16
  Requires-Python: >=3.9
17
17
  Description-Content-Type: text/markdown
18
- Requires-Dist: stac-fastapi.core==6.2.1
19
- Dynamic: classifier
20
- Dynamic: description
21
- Dynamic: description-content-type
22
- Dynamic: home-page
23
- Dynamic: license
24
- Dynamic: requires-dist
25
- Dynamic: requires-python
26
- Dynamic: summary
27
18
 
28
19
  # stac-fastapi-elasticsearch-opensearch
29
20
 
@@ -93,26 +84,43 @@ This project is built on the following technologies: STAC, stac-fastapi, FastAPI
93
84
 
94
85
  ## Table of Contents
95
86
 
96
- - [Documentation & Resources](#documentation--resources)
97
- - [Package Structure](#package-structure)
98
- - [Examples](#examples)
99
- - [Performance](#performance)
100
- - [Quick Start](#quick-start)
101
- - [Installation](#installation)
102
- - [Running Locally](#running-locally)
103
- - [Configuration reference](#configuration-reference)
104
- - [Interacting with the API](#interacting-with-the-api)
105
- - [Configure the API](#configure-the-api)
106
- - [Collection pagination](#collection-pagination)
107
- - [Ingesting Sample Data CLI Tool](#ingesting-sample-data-cli-tool)
108
- - [Elasticsearch Mappings](#elasticsearch-mappings)
109
- - [Managing Elasticsearch Indices](#managing-elasticsearch-indices)
110
- - [Snapshots](#snapshots)
111
- - [Reindexing](#reindexing)
112
- - [Auth](#auth)
113
- - [Aggregation](#aggregation)
114
- - [Rate Limiting](#rate-limiting)
115
- - [Datetime-Based Index Management](#datetime-based-index-management)
87
+ - [stac-fastapi-elasticsearch-opensearch](#stac-fastapi-elasticsearch-opensearch)
88
+ - [Sponsors \& Supporters](#sponsors--supporters)
89
+ - [Project Introduction - What is SFEOS?](#project-introduction---what-is-sfeos)
90
+ - [Common Deployment Patterns](#common-deployment-patterns)
91
+ - [Technologies](#technologies)
92
+ - [Table of Contents](#table-of-contents)
93
+ - [Documentation \& Resources](#documentation--resources)
94
+ - [Package Structure](#package-structure)
95
+ - [Examples](#examples)
96
+ - [Performance](#performance)
97
+ - [Direct Response Mode](#direct-response-mode)
98
+ - [Quick Start](#quick-start)
99
+ - [Installation](#installation)
100
+ - [Running Locally](#running-locally)
101
+ - [Using Pre-built Docker Images](#using-pre-built-docker-images)
102
+ - [Using Docker Compose](#using-docker-compose)
103
+ - [Configuration Reference](#configuration-reference)
104
+ - [Datetime-Based Index Management](#datetime-based-index-management)
105
+ - [Overview](#overview)
106
+ - [When to Use](#when-to-use)
107
+ - [Configuration](#configuration)
108
+ - [Enabling Datetime-Based Indexing](#enabling-datetime-based-indexing)
109
+ - [Related Configuration Variables](#related-configuration-variables)
110
+ - [How Datetime-Based Indexing Works](#how-datetime-based-indexing-works)
111
+ - [Index and Alias Naming Convention](#index-and-alias-naming-convention)
112
+ - [Index Size Management](#index-size-management)
113
+ - [Interacting with the API](#interacting-with-the-api)
114
+ - [Configure the API](#configure-the-api)
115
+ - [Collection Pagination](#collection-pagination)
116
+ - [Ingesting Sample Data CLI Tool](#ingesting-sample-data-cli-tool)
117
+ - [Elasticsearch Mappings](#elasticsearch-mappings)
118
+ - [Managing Elasticsearch Indices](#managing-elasticsearch-indices)
119
+ - [Snapshots](#snapshots)
120
+ - [Reindexing](#reindexing)
121
+ - [Auth](#auth)
122
+ - [Aggregation](#aggregation)
123
+ - [Rate Limiting](#rate-limiting)
116
124
 
117
125
  ## Documentation & Resources
118
126
 
@@ -255,6 +263,8 @@ You can customize additional settings in your `.env` file:
255
263
  | `DATABASE_REFRESH` | Controls whether database operations refresh the index immediately after changes. If set to `true`, changes will be immediately searchable. If set to `false`, changes may not be immediately visible but can improve performance for bulk operations. If set to `wait_for`, changes will wait for the next refresh cycle to become visible. | `false` | Optional |
256
264
  | `ENABLE_TRANSACTIONS_EXTENSIONS` | Enables or disables the Transactions and Bulk Transactions API extensions. If set to `false`, the POST `/collections` route and related transaction endpoints (including bulk transaction operations) will be unavailable in the API. This is useful for deployments where mutating the catalog via the API should be prevented. | `true` | Optional |
257
265
  | `STAC_ITEM_LIMIT` | Sets the environment variable for result limiting to SFEOS for the number of returned items and STAC collections. | `10` | Optional |
266
+ | `STAC_INDEX_ASSETS` | Controls if Assets are indexed when added to Elasticsearch/Opensearch. This allows asset fields to be included in search queries. | `false` | Optional |
267
+ | `ENV_MAX_LIMIT` | Configures the environment variable in SFEOS to override the default `MAX_LIMIT`, which controls the limit parameter for returned items and STAC collections. | `10,000` | Optional |
258
268
 
259
269
  > [!NOTE]
260
270
  > The variables `ES_HOST`, `ES_PORT`, `ES_USE_SSL`, `ES_VERIFY_CERTS` and `ES_TIMEOUT` apply to both Elasticsearch and OpenSearch backends, so there is no need to rename the key names to `OS_` even if you're using OpenSearch.
@@ -66,26 +66,43 @@ This project is built on the following technologies: STAC, stac-fastapi, FastAPI
66
66
 
67
67
  ## Table of Contents
68
68
 
69
- - [Documentation & Resources](#documentation--resources)
70
- - [Package Structure](#package-structure)
71
- - [Examples](#examples)
72
- - [Performance](#performance)
73
- - [Quick Start](#quick-start)
74
- - [Installation](#installation)
75
- - [Running Locally](#running-locally)
76
- - [Configuration reference](#configuration-reference)
77
- - [Interacting with the API](#interacting-with-the-api)
78
- - [Configure the API](#configure-the-api)
79
- - [Collection pagination](#collection-pagination)
80
- - [Ingesting Sample Data CLI Tool](#ingesting-sample-data-cli-tool)
81
- - [Elasticsearch Mappings](#elasticsearch-mappings)
82
- - [Managing Elasticsearch Indices](#managing-elasticsearch-indices)
83
- - [Snapshots](#snapshots)
84
- - [Reindexing](#reindexing)
85
- - [Auth](#auth)
86
- - [Aggregation](#aggregation)
87
- - [Rate Limiting](#rate-limiting)
88
- - [Datetime-Based Index Management](#datetime-based-index-management)
69
+ - [stac-fastapi-elasticsearch-opensearch](#stac-fastapi-elasticsearch-opensearch)
70
+ - [Sponsors \& Supporters](#sponsors--supporters)
71
+ - [Project Introduction - What is SFEOS?](#project-introduction---what-is-sfeos)
72
+ - [Common Deployment Patterns](#common-deployment-patterns)
73
+ - [Technologies](#technologies)
74
+ - [Table of Contents](#table-of-contents)
75
+ - [Documentation \& Resources](#documentation--resources)
76
+ - [Package Structure](#package-structure)
77
+ - [Examples](#examples)
78
+ - [Performance](#performance)
79
+ - [Direct Response Mode](#direct-response-mode)
80
+ - [Quick Start](#quick-start)
81
+ - [Installation](#installation)
82
+ - [Running Locally](#running-locally)
83
+ - [Using Pre-built Docker Images](#using-pre-built-docker-images)
84
+ - [Using Docker Compose](#using-docker-compose)
85
+ - [Configuration Reference](#configuration-reference)
86
+ - [Datetime-Based Index Management](#datetime-based-index-management)
87
+ - [Overview](#overview)
88
+ - [When to Use](#when-to-use)
89
+ - [Configuration](#configuration)
90
+ - [Enabling Datetime-Based Indexing](#enabling-datetime-based-indexing)
91
+ - [Related Configuration Variables](#related-configuration-variables)
92
+ - [How Datetime-Based Indexing Works](#how-datetime-based-indexing-works)
93
+ - [Index and Alias Naming Convention](#index-and-alias-naming-convention)
94
+ - [Index Size Management](#index-size-management)
95
+ - [Interacting with the API](#interacting-with-the-api)
96
+ - [Configure the API](#configure-the-api)
97
+ - [Collection Pagination](#collection-pagination)
98
+ - [Ingesting Sample Data CLI Tool](#ingesting-sample-data-cli-tool)
99
+ - [Elasticsearch Mappings](#elasticsearch-mappings)
100
+ - [Managing Elasticsearch Indices](#managing-elasticsearch-indices)
101
+ - [Snapshots](#snapshots)
102
+ - [Reindexing](#reindexing)
103
+ - [Auth](#auth)
104
+ - [Aggregation](#aggregation)
105
+ - [Rate Limiting](#rate-limiting)
89
106
 
90
107
  ## Documentation & Resources
91
108
 
@@ -228,6 +245,8 @@ You can customize additional settings in your `.env` file:
228
245
  | `DATABASE_REFRESH` | Controls whether database operations refresh the index immediately after changes. If set to `true`, changes will be immediately searchable. If set to `false`, changes may not be immediately visible but can improve performance for bulk operations. If set to `wait_for`, changes will wait for the next refresh cycle to become visible. | `false` | Optional |
229
246
  | `ENABLE_TRANSACTIONS_EXTENSIONS` | Enables or disables the Transactions and Bulk Transactions API extensions. If set to `false`, the POST `/collections` route and related transaction endpoints (including bulk transaction operations) will be unavailable in the API. This is useful for deployments where mutating the catalog via the API should be prevented. | `true` | Optional |
230
247
  | `STAC_ITEM_LIMIT` | Sets the environment variable for result limiting to SFEOS for the number of returned items and STAC collections. | `10` | Optional |
248
+ | `STAC_INDEX_ASSETS` | Controls if Assets are indexed when added to Elasticsearch/Opensearch. This allows asset fields to be included in search queries. | `false` | Optional |
249
+ | `ENV_MAX_LIMIT` | Configures the environment variable in SFEOS to override the default `MAX_LIMIT`, which controls the limit parameter for returned items and STAC collections. | `10,000` | Optional |
231
250
 
232
251
  > [!NOTE]
233
252
  > The variables `ES_HOST`, `ES_PORT`, `ES_USE_SSL`, `ES_VERIFY_CERTS` and `ES_TIMEOUT` apply to both Elasticsearch and OpenSearch backends, so there is no need to rename the key names to `OS_` even if you're using OpenSearch.
@@ -6,7 +6,7 @@ with open("README.md") as f:
6
6
  desc = f.read()
7
7
 
8
8
  install_requires = [
9
- "stac-fastapi.core==6.2.1",
9
+ "stac-fastapi.core==6.3.0",
10
10
  ]
11
11
 
12
12
  setup(
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
2
- Name: sfeos_helpers
3
- Version: 6.2.1
1
+ Metadata-Version: 2.1
2
+ Name: sfeos-helpers
3
+ Version: 6.3.0
4
4
  Summary: Helper library for the Elasticsearch and Opensearch stac-fastapi backends.
5
5
  Home-page: https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch
6
6
  License: MIT
@@ -15,15 +15,6 @@ Classifier: Programming Language :: Python :: 3.13
15
15
  Classifier: License :: OSI Approved :: MIT License
16
16
  Requires-Python: >=3.9
17
17
  Description-Content-Type: text/markdown
18
- Requires-Dist: stac-fastapi.core==6.2.1
19
- Dynamic: classifier
20
- Dynamic: description
21
- Dynamic: description-content-type
22
- Dynamic: home-page
23
- Dynamic: license
24
- Dynamic: requires-dist
25
- Dynamic: requires-python
26
- Dynamic: summary
27
18
 
28
19
  # stac-fastapi-elasticsearch-opensearch
29
20
 
@@ -93,26 +84,43 @@ This project is built on the following technologies: STAC, stac-fastapi, FastAPI
93
84
 
94
85
  ## Table of Contents
95
86
 
96
- - [Documentation & Resources](#documentation--resources)
97
- - [Package Structure](#package-structure)
98
- - [Examples](#examples)
99
- - [Performance](#performance)
100
- - [Quick Start](#quick-start)
101
- - [Installation](#installation)
102
- - [Running Locally](#running-locally)
103
- - [Configuration reference](#configuration-reference)
104
- - [Interacting with the API](#interacting-with-the-api)
105
- - [Configure the API](#configure-the-api)
106
- - [Collection pagination](#collection-pagination)
107
- - [Ingesting Sample Data CLI Tool](#ingesting-sample-data-cli-tool)
108
- - [Elasticsearch Mappings](#elasticsearch-mappings)
109
- - [Managing Elasticsearch Indices](#managing-elasticsearch-indices)
110
- - [Snapshots](#snapshots)
111
- - [Reindexing](#reindexing)
112
- - [Auth](#auth)
113
- - [Aggregation](#aggregation)
114
- - [Rate Limiting](#rate-limiting)
115
- - [Datetime-Based Index Management](#datetime-based-index-management)
87
+ - [stac-fastapi-elasticsearch-opensearch](#stac-fastapi-elasticsearch-opensearch)
88
+ - [Sponsors \& Supporters](#sponsors--supporters)
89
+ - [Project Introduction - What is SFEOS?](#project-introduction---what-is-sfeos)
90
+ - [Common Deployment Patterns](#common-deployment-patterns)
91
+ - [Technologies](#technologies)
92
+ - [Table of Contents](#table-of-contents)
93
+ - [Documentation \& Resources](#documentation--resources)
94
+ - [Package Structure](#package-structure)
95
+ - [Examples](#examples)
96
+ - [Performance](#performance)
97
+ - [Direct Response Mode](#direct-response-mode)
98
+ - [Quick Start](#quick-start)
99
+ - [Installation](#installation)
100
+ - [Running Locally](#running-locally)
101
+ - [Using Pre-built Docker Images](#using-pre-built-docker-images)
102
+ - [Using Docker Compose](#using-docker-compose)
103
+ - [Configuration Reference](#configuration-reference)
104
+ - [Datetime-Based Index Management](#datetime-based-index-management)
105
+ - [Overview](#overview)
106
+ - [When to Use](#when-to-use)
107
+ - [Configuration](#configuration)
108
+ - [Enabling Datetime-Based Indexing](#enabling-datetime-based-indexing)
109
+ - [Related Configuration Variables](#related-configuration-variables)
110
+ - [How Datetime-Based Indexing Works](#how-datetime-based-indexing-works)
111
+ - [Index and Alias Naming Convention](#index-and-alias-naming-convention)
112
+ - [Index Size Management](#index-size-management)
113
+ - [Interacting with the API](#interacting-with-the-api)
114
+ - [Configure the API](#configure-the-api)
115
+ - [Collection Pagination](#collection-pagination)
116
+ - [Ingesting Sample Data CLI Tool](#ingesting-sample-data-cli-tool)
117
+ - [Elasticsearch Mappings](#elasticsearch-mappings)
118
+ - [Managing Elasticsearch Indices](#managing-elasticsearch-indices)
119
+ - [Snapshots](#snapshots)
120
+ - [Reindexing](#reindexing)
121
+ - [Auth](#auth)
122
+ - [Aggregation](#aggregation)
123
+ - [Rate Limiting](#rate-limiting)
116
124
 
117
125
  ## Documentation & Resources
118
126
 
@@ -255,6 +263,8 @@ You can customize additional settings in your `.env` file:
255
263
  | `DATABASE_REFRESH` | Controls whether database operations refresh the index immediately after changes. If set to `true`, changes will be immediately searchable. If set to `false`, changes may not be immediately visible but can improve performance for bulk operations. If set to `wait_for`, changes will wait for the next refresh cycle to become visible. | `false` | Optional |
256
264
  | `ENABLE_TRANSACTIONS_EXTENSIONS` | Enables or disables the Transactions and Bulk Transactions API extensions. If set to `false`, the POST `/collections` route and related transaction endpoints (including bulk transaction operations) will be unavailable in the API. This is useful for deployments where mutating the catalog via the API should be prevented. | `true` | Optional |
257
265
  | `STAC_ITEM_LIMIT` | Sets the environment variable for result limiting to SFEOS for the number of returned items and STAC collections. | `10` | Optional |
266
+ | `STAC_INDEX_ASSETS` | Controls if Assets are indexed when added to Elasticsearch/Opensearch. This allows asset fields to be included in search queries. | `false` | Optional |
267
+ | `ENV_MAX_LIMIT` | Configures the environment variable in SFEOS to override the default `MAX_LIMIT`, which controls the limit parameter for returned items and STAC collections. | `10,000` | Optional |
258
268
 
259
269
  > [!NOTE]
260
270
  > The variables `ES_HOST`, `ES_PORT`, `ES_USE_SSL`, `ES_VERIFY_CERTS` and `ES_TIMEOUT` apply to both Elasticsearch and OpenSearch backends, so there is no need to rename the key names to `OS_` even if you're using OpenSearch.
@@ -0,0 +1 @@
1
+ stac-fastapi.core==6.3.0
@@ -114,7 +114,7 @@ def check_commands(
114
114
  commands.add(
115
115
  f"if (!ctx._source{part_nest}.containsKey('{path_part}'))"
116
116
  f"{{ctx._source{part_nest}['{path_part}'] = {value};}}"
117
- f"{'' if index == len(path.parts) - 1 else' else '}"
117
+ f"{'' if index == len(path.parts) - 1 else' else '}" # noqa: E275
118
118
  )
119
119
 
120
120
  else:
@@ -133,12 +133,12 @@ def check_commands(
133
133
  f" && ctx._source{path.es_nest}.size() < {abs(path.key)})"
134
134
  f" || (!(ctx._source{path.es_nest} instanceof ArrayList)"
135
135
  f" && !ctx._source{path.es_nest}.containsKey('{path.key}')))"
136
- f"{{Debug.explain('{path.key} does not exist in {path.nest}');}}"
136
+ f"{{Debug.explain('{path.key} does not exist in {path.nest}');}}" # noqa: E713
137
137
  )
138
138
  else:
139
139
  commands.add(
140
140
  f"if (!ctx._source{path.es_nest}.containsKey('{path.key}'))"
141
- f"{{Debug.explain('{path.key} does not exist in {path.nest}');}}"
141
+ f"{{Debug.explain('{path.key} does not exist in {path.nest}');}}" # noqa: E713
142
142
  )
143
143
 
144
144
 
@@ -28,6 +28,8 @@ Function Naming Conventions:
28
28
  import os
29
29
  from typing import Any, Dict, Literal, Protocol
30
30
 
31
+ from stac_fastapi.core.utilities import get_bool_env
32
+
31
33
 
32
34
  # stac_pydantic classes extend _GeometryBase, which doesn't have a type field,
33
35
  # So create our own Protocol for typing
@@ -134,7 +136,7 @@ ES_ITEMS_MAPPINGS = {
134
136
  "id": {"type": "keyword"},
135
137
  "collection": {"type": "keyword"},
136
138
  "geometry": {"type": "geo_shape"},
137
- "assets": {"type": "object", "enabled": False},
139
+ "assets": {"type": "object", "enabled": get_bool_env("STAC_INDEX_ASSETS")},
138
140
  "links": {"type": "object", "enabled": False},
139
141
  "properties": {
140
142
  "type": "object",
@@ -162,7 +164,7 @@ ES_COLLECTIONS_MAPPINGS = {
162
164
  "extent.temporal.interval": {"type": "date"},
163
165
  "providers": {"type": "object", "enabled": False},
164
166
  "links": {"type": "object", "enabled": False},
165
- "item_assets": {"type": "object", "enabled": False},
167
+ "item_assets": {"type": "object", "enabled": get_bool_env("STAC_INDEX_ASSETS")},
166
168
  },
167
169
  }
168
170
 
@@ -1,2 +1,2 @@
1
1
  """library version."""
2
- __version__ = "6.2.1"
2
+ __version__ = "6.3.0"
@@ -1 +0,0 @@
1
- stac-fastapi.core==6.2.1
File without changes