From cc2b47153553262e4ebbfb0d5bc2bf89637ac063 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Wed, 5 Oct 2022 10:21:14 -1000 Subject: [PATCH] Bug 31695: Type standard number is missing field ci_raw in field_config.yaml In Elasticsearch fields config field_config.yaml, default type as a field 'ci_raw'. This is used for exact search. This field is missing for type standard number 'stdno'. Test plan : 1) In the staff interface, go to Administration, and search for SearchEngine 2) Make sure that the SearchEngine preference is set to Elasticsearch and save 3) Return to Administration and select "Search engine configuration" 4) Change the type of "Heading-Main" to "Std. Number" and save 5) Rebuild the index (e.g. "koha-elasticsearch --rebuild -d kohadev") 6) Go to the main staff page and select Authorities 7) Search for a heading (e.g. "A Dual-language book") => Result is found with or without patch 8) Click on the sliders and select "is exactly" for the operator and search => Result is found only with patch 9) Apply the patch 10) Rebuild the index (e.g. "koha-elasticsearch --rebuild -d kohadev") 11) Click on the sliders and select "is exactly" for the operator and search => Result is found only with patch Signed-off-by: Kevin Carnes --- admin/searchengine/elasticsearch/field_config.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/admin/searchengine/elasticsearch/field_config.yaml b/admin/searchengine/elasticsearch/field_config.yaml index cf90482aa2..c87cbcae8d 100644 --- a/admin/searchengine/elasticsearch/field_config.yaml +++ b/admin/searchengine/elasticsearch/field_config.yaml @@ -38,6 +38,9 @@ search: search_analyzer: analyzer_phrase raw: type: keyword + ci_raw: + type: keyword + normalizer: icu_folding_normalizer default: type: text analyzer: analyzer_standard -- 2.25.1