diff --git a/README.md b/README.md index ab8fd2638713487829606edc3045db8afa7ea990..41811e0f9809f4ee9a34b01958125dfbcc006442 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +# Documentation Home + +Official Documentation home at [https://osdu.pages.opengroup.org/platform/system/indexer-service/](https://osdu.pages.opengroup.org/platform/system/indexer-service/) + # Introduction os-indexer-azure is a [Spring Boot](https://spring.io/projects/spring-boot) service that is responsible for indexing Records that enable the `os-search` service to execute OSDU R2 domain searches against Elasticsearch. diff --git a/indexer-core/src/main/java/org/opengroup/osdu/indexer/service/IndexerServiceImpl.java b/indexer-core/src/main/java/org/opengroup/osdu/indexer/service/IndexerServiceImpl.java index 69ebad5b419b3ce198d4a603775ccbbfed1c4d5c..e01b4a5f5a539cf82a515a9a8e8251fee7691c2c 100644 --- a/indexer-core/src/main/java/org/opengroup/osdu/indexer/service/IndexerServiceImpl.java +++ b/indexer-core/src/main/java/org/opengroup/osdu/indexer/service/IndexerServiceImpl.java @@ -436,9 +436,9 @@ public class IndexerServiceImpl implements IndexerService { Map<String, String> asIngestedProperties = new HashMap<>(); Map<String, String> propertyKeyTypeMap = new HashMap<>(); - propertyKeyTypeMap.put("FirstPoint.X", "long"); - propertyKeyTypeMap.put("FirstPoint.Y", "long"); - propertyKeyTypeMap.put("FirstPoint.Z", "long"); + propertyKeyTypeMap.put("FirstPoint.X", "double"); + propertyKeyTypeMap.put("FirstPoint.Y", "double"); + propertyKeyTypeMap.put("FirstPoint.Z", "double"); propertyKeyTypeMap.put(Constants.COORDINATE_REFERENCE_SYSTEM_ID, "text"); propertyKeyTypeMap.put(VERTICAL_COORDINATE_REFERENCE_SYSTEM_ID, "text"); propertyKeyTypeMap.put(Constants.VERTICAL_UNIT_ID, "text"); diff --git a/indexer-core/src/test/java/org/opengroup/osdu/indexer/service/StorageIndexerPayloadMapperTest.java b/indexer-core/src/test/java/org/opengroup/osdu/indexer/service/StorageIndexerPayloadMapperTest.java index 2312235c6585407f0a40732a5386296c7ff434b5..ba5696d3302b0935766f9b566f36b6ed6b492da3 100644 --- a/indexer-core/src/test/java/org/opengroup/osdu/indexer/service/StorageIndexerPayloadMapperTest.java +++ b/indexer-core/src/test/java/org/opengroup/osdu/indexer/service/StorageIndexerPayloadMapperTest.java @@ -387,9 +387,9 @@ public class StorageIndexerPayloadMapperTest { storageRecordData = loadObject("/converter/index-as-ingested-coordinates/wellStorageRecordData-v2.json", storageRecordData.getClass()); IndexSchema indexSchema = loadObject("/converter/index-as-ingested-coordinates/wellStorageSchema.json", IndexSchema.class); - indexSchema.getDataSchema().put("SpatialLocation.AsIngestedCoordinates.FirstPoint.X", "long"); - indexSchema.getDataSchema().put("SpatialLocation.AsIngestedCoordinates.FirstPoint.Y", "long"); - indexSchema.getDataSchema().put("SpatialLocation.AsIngestedCoordinates.FirstPoint.Z", "long"); + indexSchema.getDataSchema().put("SpatialLocation.AsIngestedCoordinates.FirstPoint.X", "double"); + indexSchema.getDataSchema().put("SpatialLocation.AsIngestedCoordinates.FirstPoint.Y", "double"); + indexSchema.getDataSchema().put("SpatialLocation.AsIngestedCoordinates.FirstPoint.Z", "double"); indexSchema.getDataSchema().put("SpatialLocation.AsIngestedCoordinates.CoordinateReferenceSystemID", "text"); indexSchema.getDataSchema().put("SpatialLocation.AsIngestedCoordinates.VerticalCoordinateReferenceSystemID", "text"); indexSchema.getDataSchema().put("SpatialLocation.AsIngestedCoordinates.VerticalUnitID", "text"); diff --git a/testing/indexer-test-core/src/main/resources/features/indexrecord/indexRecord-schema-service.feature b/testing/indexer-test-core/src/main/resources/features/indexrecord/indexRecord-schema-service.feature index aaac26d1399d814ab8adb8fcd14a404cc44916a3..3dc723f411446c612e5717741f4ba07d88523810 100644 --- a/testing/indexer-test-core/src/main/resources/features/indexrecord/indexRecord-schema-service.feature +++ b/testing/indexer-test-core/src/main/resources/features/indexrecord/indexRecord-schema-service.feature @@ -172,6 +172,7 @@ Feature: Indexing of the documents | "tenant1:wks:master-data--Wellbore:2.0.3" | "r3-index_record_wks_master" | 1 | "tenant1-wks-master-data--wellbore-2.0.3" | "data.default.viewers@tenant1" | "data.ProjectedBottomHoleLocation.AsIngestedCoordinates.FirstPoint.X" | 710000 | 700000 | "data.ProjectedBottomHoleLocation.AsIngestedCoordinates.FirstPoint.Y" | 5800000 | 5700000 | | "tenant1:indexer:virtual-properties-Integration:1.0.0" | "index_record_virtual_properties" | 1 | "tenant1-indexer-virtual-properties-integration-1.0.0" | "data.default.viewers@tenant1" | "data.ProjectedBottomHoleLocation.AsIngestedCoordinates.FirstPoint.X" | 2600000 | 2500000 | "data.ProjectedBottomHoleLocation.AsIngestedCoordinates.FirstPoint.Y" | -3500000 | -3600000 | | "tenant1:indexer:decimation-Integration:1.0.0" | "index_record_seismic_survey" | 1 | "tenant1-indexer-decimation-integration-1.0.0" | "data.default.viewers@tenant1" | "data.SpatialLocation.AsIngestedCoordinates.FirstPoint.X" | 1151940 | 1151930 | "data.SpatialLocation.AsIngestedCoordinates.FirstPoint.Y" | 4843810 | 4843800 | + | "tenant1:indexer:virtual-properties-Integration:1.0.0" | "index_record_virtual_properties" | 1 | "tenant1-indexer-virtual-properties-integration-1.0.0" | "data.default.viewers@tenant1" | "data.ProjectedBottomHoleLocation.AsIngestedCoordinates.FirstPoint.X" | 2504888.139 | 2504888.138 | "data.ProjectedBottomHoleLocation.AsIngestedCoordinates.FirstPoint.Y" | -3525752.639 | -3525752.640 | @default Scenario Outline: Synchronize meta attribute mapping on existing indexed kind