From 9a20bad5e1d36b9a375ed292e8c8a762ad07f9b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Fri, 4 Nov 2022 13:27:13 +0100 Subject: [PATCH] Make wildcard search case-insensitive (#559) https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html#wildcard-query-field-params --- frontend/src/Search.elm | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/Search.elm b/frontend/src/Search.elm index 3604882..4737c5c 100644 --- a/frontend/src/Search.elm +++ b/frontend/src/Search.elm @@ -1278,6 +1278,7 @@ searchFields query mainField fields = [ ( mainField , Json.Encode.object [ ( "value", Json.Encode.string ("*" ++ queryWord ++ "*") ) + , ( "case_insensitive", Json.Encode.bool True ) ] ) ]