From bd1de86cef2903a4918a88e31cad72ef428365ce Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Wed, 6 Mar 2024 08:37:32 +0100 Subject: - Set the complete list of the config where it contains the complete world. - Append where it is intended. This is a workaround for not having a map type in config. Sometimes it works to have multiple producers produce the same config, sometimes not. This tries to make it more deterministic. Currently other tricks have been employed to avoid appending more to the list than intended. --- .../main/java/com/yahoo/prelude/querytransform/NonPhrasingSearcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'container-search/src/main/java/com/yahoo/prelude/querytransform') diff --git a/container-search/src/main/java/com/yahoo/prelude/querytransform/NonPhrasingSearcher.java b/container-search/src/main/java/com/yahoo/prelude/querytransform/NonPhrasingSearcher.java index 59111b1b018..654f2e271ec 100644 --- a/container-search/src/main/java/com/yahoo/prelude/querytransform/NonPhrasingSearcher.java +++ b/container-search/src/main/java/com/yahoo/prelude/querytransform/NonPhrasingSearcher.java @@ -44,7 +44,7 @@ public class NonPhrasingSearcher extends Searcher { } private void setupAutomatonFile(String phraseAutomatonFile) { - if (phraseAutomatonFile == null || phraseAutomatonFile.trim().equals("")) { + if (phraseAutomatonFile == null || phraseAutomatonFile.trim().isEmpty()) { //no file, just use dummy matcher phraseMatcher = PhraseMatcher.getNullMatcher(); } else { -- cgit v1.2.3