Skip to content

Commit e4a44ec

Browse files
committed
add indexed fields tto settings
1 parent b55ef7d commit e4a44ec

File tree

1 file changed

+2
-0
lines changed
  • stac_fastapi/elasticsearch/stac_fastapi/elasticsearch

1 file changed

+2
-0
lines changed

stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class ElasticsearchSettings(ApiSettings):
3737

3838
# Fields which are defined by STAC but not included in the database model
3939
forbidden_fields: Set[str] = _forbidden_fields
40+
indexed_fields: Set[str] = {"datetime"}
4041

4142
@property
4243
def create_client(self):
@@ -49,6 +50,7 @@ class AsyncElasticsearchSettings(ApiSettings):
4950

5051
# Fields which are defined by STAC but not included in the database model
5152
forbidden_fields: Set[str] = _forbidden_fields
53+
indexed_fields: Set[str] = {"datetime"}
5254

5355
@property
5456
def create_client(self):

0 commit comments

Comments
 (0)