From 34bdebed1b6093d2e950bb94cfac8b93fde3ac84 Mon Sep 17 00:00:00 2001 From: thomas-sc Date: Mon, 6 Jan 2025 13:25:10 +0100 Subject: [PATCH] Change Mapping for separate FullName Fields --- Classes/Processing/BibElasticMapping.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Classes/Processing/BibElasticMapping.php b/Classes/Processing/BibElasticMapping.php index c911930..b470f77 100644 --- a/Classes/Processing/BibElasticMapping.php +++ b/Classes/Processing/BibElasticMapping.php @@ -15,18 +15,18 @@ public static function getMappingParams(string $index): array 'mappings' => [ 'dynamic' => false, 'properties' => [ - 'itemType' => [ 'type' => 'keyword' ], + 'itemType' => [ 'type' => 'text', 'fields' => [ 'keyword' => [ 'type' => 'keyword', 'ignore_above' => 256 ] ] ], 'version' => [ 'type' => 'long' ], 'title' => [ 'type' => 'text'], 'university' => [ 'type' => 'text'], 'bookTitle' => [ 'type' => 'text'], 'series' => [ 'type' => 'text', 'fields' => [ 'keyword' => [ 'type' => 'keyword', 'ignore_above' => 256 ] ] ], 'publicationTitle' => [ 'type' => 'text', 'fields' => [ 'keyword' => [ 'type' => 'keyword', 'ignore_above' => 256 ] ] ], - 'language' => [ 'type' => 'keyword' ], + 'language' => [ 'type' => 'text', 'fields' => [ 'keyword' => [ 'type' => 'keyword', 'ignore_above' => 256 ] ] ], 'place' => [ 'type' => 'text', 'fields' => [ 'keyword' => [ 'type' => 'keyword', 'ignore_above' => 256 ] ] ], 'date' => [ 'type' => 'text', 'fields' => [ 'keyword' => [ 'type' => 'keyword', 'ignore_above' => 256 ] ] ], 'archiveLocation' => [ 'type' => 'text', 'fields' => [ 'keyword' => [ 'type' => 'keyword', 'ignore_above' => 256 ] ] ], - 'journalTitle' => [ 'type' => 'keyword'], + 'journalTitle' => [ 'type' => 'text', 'fields' => [ 'keyword' => [ 'type' => 'keyword', 'ignore_above' => 256 ] ] ], 'creators' => [ 'type' => 'nested', 'properties' => [ @@ -40,7 +40,6 @@ public static function getMappingParams(string $index): array 'type' => 'keyword', 'ignore_above' => 256 ], ], - 'copy_to' => 'creators.fullName' ], 'lastName' => [ 'type' => 'text', @@ -49,7 +48,6 @@ public static function getMappingParams(string $index): array 'type' => 'keyword', 'ignore_above' => 256 ] ], - 'copy_to' => 'creators.fullName' ], 'fullName' => ['type' => 'text', 'fields' => [ 'keyword' => [ 'type' => 'keyword'] ] ], ] @@ -60,6 +58,13 @@ public static function getMappingParams(string $index): array 'tx_lisztcommon_footer' => [ 'type' => 'text' ], 'tx_lisztcommon_searchable' => ['type' => 'text', 'copy_to' => 'fulltext'], 'tx_lisztcommon_boosted' => ['type' => 'text'], + 'tx_lisztcommon_creators' => [ + 'type' => 'nested', + 'properties' => [ + 'fullName' => ['type' => 'text'], + ] + ], + ] ] ]