diff --git a/src/main/java/de/numcodex/feasibility_gui_backend/terminology/es/model/CodeableConceptDocument.java b/src/main/java/de/numcodex/feasibility_gui_backend/terminology/es/model/CodeableConceptDocument.java index b14fac62..45aa9d9f 100644 --- a/src/main/java/de/numcodex/feasibility_gui_backend/terminology/es/model/CodeableConceptDocument.java +++ b/src/main/java/de/numcodex/feasibility_gui_backend/terminology/es/model/CodeableConceptDocument.java @@ -13,9 +13,9 @@ @Document(indexName = "codeable_concept") public record CodeableConceptDocument( @Id String id, - @Field(type = FieldType.Nested, includeInParent = true, name = "termcode") + @Field(name = "termcode") TermCode termCode, - @Field(type = FieldType.Nested, includeInParent = true, name = "value_sets") + @Field(name = "value_sets") List valueSets ) { } diff --git a/src/main/java/de/numcodex/feasibility_gui_backend/terminology/es/model/OntologyItemDocument.java b/src/main/java/de/numcodex/feasibility_gui_backend/terminology/es/model/OntologyItemDocument.java index 0633ee00..dd8ceebd 100644 --- a/src/main/java/de/numcodex/feasibility_gui_backend/terminology/es/model/OntologyItemDocument.java +++ b/src/main/java/de/numcodex/feasibility_gui_backend/terminology/es/model/OntologyItemDocument.java @@ -20,13 +20,13 @@ public record OntologyItemDocument( String termcode, @Field(name = "kds_module") String kdsModule, - @Field(type = FieldType.Nested, includeInParent = true, name = "translations") + @Field(name = "translations") Collection translations, - @Field(type = FieldType.Nested, includeInParent = true, name = "parents") + @Field(name = "parents") Collection parents, - @Field(type = FieldType.Nested, includeInParent = true, name = "children") + @Field(name = "children") Collection children, - @Field(type = FieldType.Nested, includeInParent = true, name = "related_terms") + @Field(name = "related_terms") Collection relatedTerms ) { } diff --git a/src/main/java/de/numcodex/feasibility_gui_backend/terminology/es/model/OntologyItemRelationsDocument.java b/src/main/java/de/numcodex/feasibility_gui_backend/terminology/es/model/OntologyItemRelationsDocument.java index 0099eef3..c4ec5dbe 100644 --- a/src/main/java/de/numcodex/feasibility_gui_backend/terminology/es/model/OntologyItemRelationsDocument.java +++ b/src/main/java/de/numcodex/feasibility_gui_backend/terminology/es/model/OntologyItemRelationsDocument.java @@ -10,13 +10,13 @@ @Builder @Document(indexName = "ontology") public record OntologyItemRelationsDocument( - @Field(type = FieldType.Nested, includeInParent = true, name = "translations") + @Field(name = "translations") Collection translations, - @Field(type = FieldType.Nested, includeInParent = true, name = "parents") + @Field(name = "parents") Collection parents, - @Field(type = FieldType.Nested, includeInParent = true, name = "children") + @Field(name = "children") Collection children, - @Field(type = FieldType.Nested, includeInParent = true, name = "related_terms") + @Field(name = "related_terms") Collection relatedTerms ) { }