From 1a36a8b58d8d5cd79f0fc429a5001ee5930b31bd Mon Sep 17 00:00:00 2001 From: Marcus Aspin Date: Tue, 18 Feb 2025 10:25:29 +0000 Subject: [PATCH] PI-2847 Reduce fuzziness ahead of UR --- .../hmpps/probationsearch/contactsearch/ContactSearchService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/uk/gov/justice/hmpps/probationsearch/contactsearch/ContactSearchService.kt b/src/main/kotlin/uk/gov/justice/hmpps/probationsearch/contactsearch/ContactSearchService.kt index ccacdee4..3f07589d 100644 --- a/src/main/kotlin/uk/gov/justice/hmpps/probationsearch/contactsearch/ContactSearchService.kt +++ b/src/main/kotlin/uk/gov/justice/hmpps/probationsearch/contactsearch/ContactSearchService.kt @@ -161,7 +161,7 @@ class ContactSearchService( multiMatchQuery.query(request.query) .operator(if (request.matchAllTerms) JavaClientOperator.And else JavaClientOperator.Or) .fields("notes", "type", "outcome", "description") - .fuzziness("AUTO") + .fuzziness("1") } } else { MatchQuery.of { match -> match.field("crn").query { it.stringValue(request.crn) } }