From 2207446879d0830b143048e445ed20e4156187ec Mon Sep 17 00:00:00 2001 From: cezaralexandremorais Date: Wed, 28 Jun 2023 10:28:05 +0100 Subject: [PATCH] fix(gate):fixed method DocumentMappingService.toAddressDoc --- .../component/opensearch/impl/service/DocumentMappingService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpdm-pool/src/main/kotlin/org/eclipse/tractusx/bpdm/pool/component/opensearch/impl/service/DocumentMappingService.kt b/bpdm-pool/src/main/kotlin/org/eclipse/tractusx/bpdm/pool/component/opensearch/impl/service/DocumentMappingService.kt index 76ebad758..0e81d565d 100644 --- a/bpdm-pool/src/main/kotlin/org/eclipse/tractusx/bpdm/pool/component/opensearch/impl/service/DocumentMappingService.kt +++ b/bpdm-pool/src/main/kotlin/org/eclipse/tractusx/bpdm/pool/component/opensearch/impl/service/DocumentMappingService.kt @@ -104,7 +104,7 @@ class DocumentMappingService { fun toAddressDoc(address: AlternativePostalAddress): AddressDoc { return AddressDoc( - administrativeAreas = setOf(TextDoc(address.administrativeAreaLevel2.toString())), + administrativeAreas = setOf(TextDoc(address.administrativeAreaLevel1.toString())), postCodes = setOf(TextDoc(address.postCode.toString())), localities = setOf(TextDoc("")), thoroughfares = setOf(TextDoc("")),