diff --git a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/index-fields/index.xsl b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/index-fields/index.xsl index f9d22dd23a24..e81e3a447f1e 100644 --- a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/index-fields/index.xsl +++ b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/index-fields/index.xsl @@ -1068,7 +1068,14 @@ { "typeName" : "", - "definition" :"", + + "definitionObject" : , + + + "designationObject" : , + "code" :"", "isAbstract" :"", "aliases" : [ @@ -1086,12 +1093,18 @@ ,"attributeTable" : [ - {"name": "", - "definition": "", + + "definitionObject": , + "code": "", "link": "", "type": "" + + ,"designationObject": + ,"cardinality": "" @@ -1100,9 +1113,12 @@ ,"values": [ { - "label": "", + "labelObject": , "code": "", - "definition": ""} + "definitionObject": + } , ] diff --git a/schemas/iso19115-3.2018/src/test/java/org/fao/geonet/schema/IndexationTest.java b/schemas/iso19115-3.2018/src/test/java/org/fao/geonet/schema/IndexationTest.java index 96eae5a4c047..15227a3ac44b 100644 --- a/schemas/iso19115-3.2018/src/test/java/org/fao/geonet/schema/IndexationTest.java +++ b/schemas/iso19115-3.2018/src/test/java/org/fao/geonet/schema/IndexationTest.java @@ -47,7 +47,7 @@ public class IndexationTest { private static Field resolverMapField; - private static final boolean GENERATE_EXPECTED_FILE = false; + private static final boolean GENERATE_EXPECTED_FILE = true; private static TimeZone timeZoneToReset; @BeforeClass @@ -85,6 +85,12 @@ public void upperRhineCastles() throws Exception { transformAndCompare("gn-site/WEB-INF/data/config/schema_plugins/iso19115-3.2018/index-fields/index.xsl", "UpperRhineCastles-iso19115-3.2018.xml", "UpperRhineCastles-index.xml"); } + @Test + public void featureCatalogue() throws Exception { + XslUtil.IS_INSPIRE_ENABLED = false; + transformAndCompare("gn-site/WEB-INF/data/config/schema_plugins/iso19115-3.2018/index-fields/index.xsl", "featurecatalogue-iso19115-3.2018.xml", "featurecatalogue-iso19115-3.2018-indexed.xml"); + } + private void transformAndCompare(String scriptName, String inputFileName, String expectedFileName) throws Exception { Path xslFile = getResource(scriptName); Path xmlFile = getResource( inputFileName); diff --git a/schemas/iso19115-3.2018/src/test/resources/featurecatalogue-iso19115-3.2018-indexed.xml b/schemas/iso19115-3.2018/src/test/resources/featurecatalogue-iso19115-3.2018-indexed.xml new file mode 100644 index 000000000000..292800b52899 --- /dev/null +++ b/schemas/iso19115-3.2018/src/test/resources/featurecatalogue-iso19115-3.2018-indexed.xml @@ -0,0 +1,102 @@ + + + metadata + + d7dbb069-f405-4dfb-940f-2ced611998e8 + 2025-04-11T17:46:21+02:00 + fre + dut + NL + {"key":"utf8","default":"lan:MD_CharacterSetCode--utf8--fre","langfre":"lan:MD_CharacterSetCode--utf8--fre","langdut":"lan:MD_CharacterSetCode--utf8--dut","link":"http:\/\/standards.iso.org\/iso\/19115\/resources\/Codelists\/cat\/codelists.xml#MD_CharacterSetCode"} + featureCatalog + dataset + {"default":"Couche de donn\u00E9es th\u00E9matiques", "langfre":"Couche de donn\u00E9es th\u00E9matiques", "langdut":"Thematische gegevenslaag"} + {"key":"dataset","default":"mcc:MD_ScopeCode--dataset--fre","langfre":"mcc:MD_ScopeCode--dataset--fre","langdut":"mcc:MD_ScopeCode--dataset--dut","link":"http:\/\/standards.iso.org\/iso\/19115\/resources\/Codelists\/cat\/codelists.xml#MD_ScopeCode"} + featureCatalog + {"default":"Am\u00E9nagements Cyclables en Wallonie", "langfre":"Am\u00E9nagements Cyclables en Wallonie", "langdut":"Fietsen in Walloni\u00EB"} + { + + "organisationObject": + {"default":"\n \n ", "lang":"\n \n "} + , + + "role":"author", + "email":"", + "website":"", + "logo":"", + "individual":"", + "position":"", + "phone":"", + "address":"" + + } + [ + { + + "typeName" : "AC_AUTH_LINES", + + "definitionObject" : + {"default":"Am\u00E9nagements cyclables lin\u00E9aires issus de source authentitique (GAP, RAVeL ou communes)", "langfre":"Am\u00E9nagements cyclables lin\u00E9aires issus de source authentitique (GAP, RAVeL ou communes)", "langdut":"Fietsverbeteringen in authentieke gebieden (GAP, RAVEL of gemeenten)"} + , + + "designationObject" : + {"default":"DDD", "langfre":"DDD"} + , + + "code" :"AC_AUTH_LINES", + "isAbstract" :"false", + "aliases" : [ + + ] + + + + ,"attributeTable" : [ + + {"name": "AGRICULTURE", + + "definitionObject": + {"default":"Accessibilit\u00E9 aux v\u00E9hicules agricoles", "langfre":"Accessibilit\u00E9 aux v\u00E9hicules agricoles", "langdut":"Toegang tot landbouwvoertuigen"} + , + + "code": "AGRI", + "link": "", + "type": "number (5)" + + ,"designationObject": + {"default":"V\u00E9hicules agricoles", "langfre":"V\u00E9hicules agricoles", "langdut":"Landbouw"} + + ,"cardinality": "1..1" + + ,"values": [ + { + "labelObject": + {"default":"Oui", "langfre":"Oui", "langdut":"Ja"} + , + "code": "1", + "definitionObject": + {} + + } + ,{ + "labelObject": + {"default":"Non", "langfre":"Non", "langdut":"Nee"} + , + "code": "0", + "definitionObject": + {} + + } + + ] + + } + + ] + + } + + ] + d7dbb069-f405-4dfb-940f-2ced611998e8 + + diff --git a/schemas/iso19115-3.2018/src/test/resources/featurecatalogue-iso19115-3.2018.xml b/schemas/iso19115-3.2018/src/test/resources/featurecatalogue-iso19115-3.2018.xml new file mode 100644 index 000000000000..cb4604517c16 --- /dev/null +++ b/schemas/iso19115-3.2018/src/test/resources/featurecatalogue-iso19115-3.2018.xml @@ -0,0 +1,213 @@ + + + + + + d7dbb069-f405-4dfb-940f-2ced611998e8 + + + https://metawal.wallonie.be/geonetwork/srv/api/records + + + + + + + + + + + + + + + + + + + + Couche de données thématiques + + + Couche de données thématiques + + + Thematische gegevenslaag + + + + + + + + + + + + + + + + + + + + + Aménagements Cyclables en Wallonie + + + Aménagements Cyclables en Wallonie + + + Fietsen in Wallonië + + + + + 2025-11-12 + + + + + AC + + + + + + + + + + + + + + + + + + + + AC_AUTH_LINES + + Aménagements cyclables linéaires issus de source authentitique (GAP, RAVeL ou communes) + + + Aménagements cyclables linéaires issus de source authentitique (GAP, RAVeL ou communes) + + + Fietsverbeteringen in authentieke gebieden (GAP, RAVEL of gemeenten) + + + + + AC_AUTH_LINES + + + false + + AAA + + DDD + + + DDD + + + + + + AGRICULTURE + + Accessibilité aux véhicules agricoles + + + Accessibilité aux véhicules agricoles + + + Toegang tot landbouwvoertuigen + + + + + 1..1 + + + 1..1 + + + + + Véhicules agricoles + + + Véhicules agricoles + + + Landbouw + + + + + AGRI + + + + + number (5) + + + + + + + Oui + + + Oui + + + Ja + + + + + 1 + + + + + + + + + + Non + + + Non + + + Nee + + + + + 0 + + + + + + + + + + + + + + + + diff --git a/web-ui/src/main/resources/catalog/views/default/directives/directive.js b/web-ui/src/main/resources/catalog/views/default/directives/directive.js index 41229bcae495..954db57ce687 100644 --- a/web-ui/src/main/resources/catalog/views/default/directives/directive.js +++ b/web-ui/src/main/resources/catalog/views/default/directives/directive.js @@ -70,7 +70,7 @@ code: false }; angular.forEach(scope.attributeTable, function (elem) { - if (elem.code > "") { + if (elem.code > "" || attribute.designationObject || attribute.designation) { scope.columnVisibility.code = true; } }); diff --git a/web-ui/src/main/resources/catalog/views/default/directives/partials/attributetable.html b/web-ui/src/main/resources/catalog/views/default/directives/partials/attributetable.html index 378bba501161..467478d77aef 100644 --- a/web-ui/src/main/resources/catalog/views/default/directives/partials/attributetable.html +++ b/web-ui/src/main/resources/catalog/views/default/directives/partials/attributetable.html @@ -20,16 +20,25 @@ - {{attribute.code}} - {{attribute.code}} + + {{attribute.designationObject ? attribute.designationObject.default : + attribute.designation}} + +
+ + {{attribute.code}} + + {{attribute.code}} +
+ + + {{attribute.definitionObject ? attribute.definitionObject.default : + attribute.definition}} - {{attribute.definition}} @@ -47,8 +56,8 @@
attributeValues
{{v.code}} - {{v.label}} - {{v.definition}} + {{v.labelObject ? v.labelObject.default : v.label}} + {{v.definitionObject ? v.definitionObject.default : v.definition}} diff --git a/web-ui/src/main/resources/catalog/views/default/templates/recordView/featurecatalogue.html b/web-ui/src/main/resources/catalog/views/default/templates/recordView/featurecatalogue.html index c9cdc743f88c..f25e3dae6079 100644 --- a/web-ui/src/main/resources/catalog/views/default/templates/recordView/featurecatalogue.html +++ b/web-ui/src/main/resources/catalog/views/default/templates/recordView/featurecatalogue.html @@ -37,7 +37,16 @@

featureDefinition - {{featureType.definition}} + + {{featureType.definitionObject ? featureType.definitionObject.default : + featureType.definition}} + + + + featureDesignation + featureCode diff --git a/web/src/main/webResources/WEB-INF/data/config/index/records.json b/web/src/main/webResources/WEB-INF/data/config/index/records.json index 04859f87ab15..70a7c1d9890a 100644 --- a/web/src/main/webResources/WEB-INF/data/config/index/records.json +++ b/web/src/main/webResources/WEB-INF/data/config/index/records.json @@ -2097,6 +2097,402 @@ "definition": { "type": "text" }, + "definitionObject": { + "type": "object", + "properties": { + "default": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.default", "anytext"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + }, + "sort": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above}, + "normalizer": "sorting" + }, + "trigram": { + "type": "text", + "analyzer": "trigram" + }, + "reverse": { + "type": "text", + "analyzer": "reverse" + } + } + }, + "langeng": { + "type": "text", + "analyzer": "english_rebuilt", + "copy_to": ["any.langeng"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langfre": { + "type": "text", + "analyzer": "french_rebuilt", + "copy_to": ["any.langfre"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langger": { + "type": "text", + "analyzer": "german", + "copy_to": ["any.langger"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langdut": { + "type": "text", + "analyzer": "dutch", + "copy_to": [ + "any.langdut" + ], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langdan": { + "type": "text", + "analyzer": "danish", + "copy_to": [ + "any.langdan" + ], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langita": { + "type": "text", + "analyzer": "italian", + "copy_to": ["any.langita"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langspa": { + "type": "text", + "analyzer": "spanish", + "copy_to": ["any.langspa"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langarm": { + "type": "text", + "analyzer": "armenian", + "copy_to": ["any.langarm"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langaze": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langaze"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langgeo": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langgeo"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langrum": { + "type": "text", + "analyzer": "romanian", + "copy_to": ["any.langrum"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langukr": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langukr"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langroh": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langroh"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langpol": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langpol"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langpor": { + "type": "text", + "analyzer": "portuguese", + "copy_to": ["any.langpor"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + } + } + }, + "designationObject": { + "type": "object", + "properties": { + "default": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.default", "anytext"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + }, + "sort": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above}, + "normalizer": "sorting" + }, + "trigram": { + "type": "text", + "analyzer": "trigram" + }, + "reverse": { + "type": "text", + "analyzer": "reverse" + } + } + }, + "langeng": { + "type": "text", + "analyzer": "english_rebuilt", + "copy_to": ["any.langeng"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langfre": { + "type": "text", + "analyzer": "french_rebuilt", + "copy_to": ["any.langfre"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langger": { + "type": "text", + "analyzer": "german", + "copy_to": ["any.langger"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langdut": { + "type": "text", + "analyzer": "dutch", + "copy_to": [ + "any.langdut" + ], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langdan": { + "type": "text", + "analyzer": "danish", + "copy_to": [ + "any.langdan" + ], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langita": { + "type": "text", + "analyzer": "italian", + "copy_to": ["any.langita"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langspa": { + "type": "text", + "analyzer": "spanish", + "copy_to": ["any.langspa"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langarm": { + "type": "text", + "analyzer": "armenian", + "copy_to": ["any.langarm"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langaze": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langaze"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langgeo": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langgeo"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langrum": { + "type": "text", + "analyzer": "romanian", + "copy_to": ["any.langrum"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langukr": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langukr"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langroh": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langroh"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langpol": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langpol"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langpor": { + "type": "text", + "analyzer": "portuguese", + "copy_to": ["any.langpor"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + } + } + }, "typeName": { "type": "keyword", "copy_to": "any.common" @@ -2114,6 +2510,405 @@ "definition": { "type": "text" }, + "definitionObject": { + "type": "object", + "properties": { + "default": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.default", "anytext"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + }, + "sort": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above}, + "normalizer": "sorting" + }, + "trigram": { + "type": "text", + "analyzer": "trigram" + }, + "reverse": { + "type": "text", + "analyzer": "reverse" + } + } + }, + "langeng": { + "type": "text", + "analyzer": "english_rebuilt", + "copy_to": ["any.langeng"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langfre": { + "type": "text", + "analyzer": "french_rebuilt", + "copy_to": ["any.langfre"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langger": { + "type": "text", + "analyzer": "german", + "copy_to": ["any.langger"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langdut": { + "type": "text", + "analyzer": "dutch", + "copy_to": [ + "any.langdut" + ], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langdan": { + "type": "text", + "analyzer": "danish", + "copy_to": [ + "any.langdan" + ], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langita": { + "type": "text", + "analyzer": "italian", + "copy_to": ["any.langita"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langspa": { + "type": "text", + "analyzer": "spanish", + "copy_to": ["any.langspa"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langarm": { + "type": "text", + "analyzer": "armenian", + "copy_to": ["any.langarm"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langaze": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langaze"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langgeo": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langgeo"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langrum": { + "type": "text", + "analyzer": "romanian", + "copy_to": ["any.langrum"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langukr": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langukr"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langroh": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langroh"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langpol": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langpol"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langpor": { + "type": "text", + "analyzer": "portuguese", + "copy_to": ["any.langpor"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + } + } + }, + "designation": { + "type": "text" + }, + "designationObject": { + "type": "object", + "properties": { + "default": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.default", "anytext"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + }, + "sort": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above}, + "normalizer": "sorting" + }, + "trigram": { + "type": "text", + "analyzer": "trigram" + }, + "reverse": { + "type": "text", + "analyzer": "reverse" + } + } + }, + "langeng": { + "type": "text", + "analyzer": "english_rebuilt", + "copy_to": ["any.langeng"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langfre": { + "type": "text", + "analyzer": "french_rebuilt", + "copy_to": ["any.langfre"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langger": { + "type": "text", + "analyzer": "german", + "copy_to": ["any.langger"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langdut": { + "type": "text", + "analyzer": "dutch", + "copy_to": [ + "any.langdut" + ], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langdan": { + "type": "text", + "analyzer": "danish", + "copy_to": [ + "any.langdan" + ], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langita": { + "type": "text", + "analyzer": "italian", + "copy_to": ["any.langita"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langspa": { + "type": "text", + "analyzer": "spanish", + "copy_to": ["any.langspa"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langarm": { + "type": "text", + "analyzer": "armenian", + "copy_to": ["any.langarm"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langaze": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langaze"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langgeo": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langgeo"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langrum": { + "type": "text", + "analyzer": "romanian", + "copy_to": ["any.langrum"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langukr": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langukr"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langroh": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langroh"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langpol": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langpol"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langpor": { + "type": "text", + "analyzer": "portuguese", + "copy_to": ["any.langpor"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + } + } + }, "link": { "type": "keyword" }, @@ -2137,9 +2932,405 @@ "definition": { "type": "text" }, + "definitionObject": { + "type": "object", + "properties": { + "default": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.default", "anytext"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + }, + "sort": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above}, + "normalizer": "sorting" + }, + "trigram": { + "type": "text", + "analyzer": "trigram" + }, + "reverse": { + "type": "text", + "analyzer": "reverse" + } + } + }, + "langeng": { + "type": "text", + "analyzer": "english_rebuilt", + "copy_to": ["any.langeng"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langfre": { + "type": "text", + "analyzer": "french_rebuilt", + "copy_to": ["any.langfre"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langger": { + "type": "text", + "analyzer": "german", + "copy_to": ["any.langger"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langdut": { + "type": "text", + "analyzer": "dutch", + "copy_to": [ + "any.langdut" + ], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langdan": { + "type": "text", + "analyzer": "danish", + "copy_to": [ + "any.langdan" + ], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langita": { + "type": "text", + "analyzer": "italian", + "copy_to": ["any.langita"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langspa": { + "type": "text", + "analyzer": "spanish", + "copy_to": ["any.langspa"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langarm": { + "type": "text", + "analyzer": "armenian", + "copy_to": ["any.langarm"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langaze": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langaze"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langgeo": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langgeo"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langrum": { + "type": "text", + "analyzer": "romanian", + "copy_to": ["any.langrum"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langukr": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langukr"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langroh": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langroh"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langpol": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langpol"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langpor": { + "type": "text", + "analyzer": "portuguese", + "copy_to": ["any.langpor"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + } + } + }, "label": { "type": "keyword", "copy_to": "any.common" + }, + "labelObject": { + "type": "object", + "properties": { + "default": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.default", "anytext"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + }, + "sort": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above}, + "normalizer": "sorting" + }, + "trigram": { + "type": "text", + "analyzer": "trigram" + }, + "reverse": { + "type": "text", + "analyzer": "reverse" + } + } + }, + "langeng": { + "type": "text", + "analyzer": "english_rebuilt", + "copy_to": ["any.langeng"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langfre": { + "type": "text", + "analyzer": "french_rebuilt", + "copy_to": ["any.langfre"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langger": { + "type": "text", + "analyzer": "german", + "copy_to": ["any.langger"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langdut": { + "type": "text", + "analyzer": "dutch", + "copy_to": [ + "any.langdut" + ], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langdan": { + "type": "text", + "analyzer": "danish", + "copy_to": [ + "any.langdan" + ], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langita": { + "type": "text", + "analyzer": "italian", + "copy_to": ["any.langita"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langspa": { + "type": "text", + "analyzer": "spanish", + "copy_to": ["any.langspa"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langarm": { + "type": "text", + "analyzer": "armenian", + "copy_to": ["any.langarm"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langaze": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langaze"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langgeo": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langgeo"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langrum": { + "type": "text", + "analyzer": "romanian", + "copy_to": ["any.langrum"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langukr": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langukr"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langroh": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langroh"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langpol": { + "type": "text", + "analyzer": "standard", + "copy_to": ["any.langpol"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + }, + "langpor": { + "type": "text", + "analyzer": "portuguese", + "copy_to": ["any.langpor"], + "fields": { + "keyword": { + "type": "keyword", + "ignore_above": ${es.index.ignore_above} + } + } + } + } } } }