Skip to content

Commit fe568ee

Browse files
committed
Fix allow_no_indices boolean bug, Remove autogenerated description because it looks odd
1 parent 08be02c commit fe568ee

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

stac_fastapi/core/stac_fastapi/core/core.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,6 @@ async def get_queryables(
10521052

10531053
field_name_human = field_name.replace("_", " ").title()
10541054
field_result.setdefault("title", field_name_human)
1055-
field_result.setdefault("description", field_name_human)
10561055

10571056
field_type_json = _ES_MAPPING_TYPE_TO_JSON.get(field_type, field_type)
10581057
field_result.setdefault("type", field_type_json)

stac_fastapi/opensearch/stac_fastapi/opensearch/database_logic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ async def get_items_mapping(self, collection_id: str) -> Dict[str, Any]:
769769
index_name = index_alias_by_collection_id(collection_id)
770770
try:
771771
mapping = await self.client.indices.get_mapping(
772-
index=index_name, params={"allow_no_indices": False}
772+
index=index_name, params={"allow_no_indices": "false"}
773773
)
774774
return mapping
775775
except exceptions.NotFoundError:

0 commit comments

Comments
 (0)