diff --git a/server/src/main/java/au/org/aodn/ogcapi/server/core/model/enumeration/StacBasicField.java b/server/src/main/java/au/org/aodn/ogcapi/server/core/model/enumeration/StacBasicField.java index b6928a6e..0e01aa13 100644 --- a/server/src/main/java/au/org/aodn/ogcapi/server/core/model/enumeration/StacBasicField.java +++ b/server/src/main/java/au/org/aodn/ogcapi/server/core/model/enumeration/StacBasicField.java @@ -23,7 +23,7 @@ public enum StacBasicField { Links("links", "links"), LinksTitle("links.title", "links.title"), Collection("collection", "collection", "collection.keyword"), - AssetsSummary("assets.summary", "assets.summary") + AssetsSummary("assets", "assets") ; // Field that use to do sort, elastic search treat FieldData (searchField) differently, a searchField is not diff --git a/server/src/test/resources/portal_records_index_schema.json b/server/src/test/resources/portal_records_index_schema.json index 9d851676..2cc63faa 100644 --- a/server/src/test/resources/portal_records_index_schema.json +++ b/server/src/test/resources/portal_records_index_schema.json @@ -167,35 +167,7 @@ } }, "assets": { - "type": "object", - "properties": { - "href": { - "type": "text", - "index": false - }, - "title": { - "type": "text", - "fields": { - "keyword": { - "type": "keyword", - "ignore_above": 256 - } - } - }, - "type": { - "type": "keyword" - }, - "roles": { - "type": "keyword" - }, - "description": { - "type": "text" - }, - "extra_fields": { - "type": "object", - "enabled": true - } - } + "type": "flattened" }, "sci:citation": { "type": "text"