diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2024-03-06 08:37:32 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2024-03-06 09:09:57 +0100 |
commit | bd1de86cef2903a4918a88e31cad72ef428365ce (patch) | |
tree | 3887e712d437a2f475f9b671f1eec37c1db410d8 /container-search/src/main/java/com/yahoo/prelude/querytransform/NonPhrasingSearcher.java | |
parent | 266b744d85348796a6ca8e3586e8ac6e758f8cae (diff) |
- 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.
Diffstat (limited to 'container-search/src/main/java/com/yahoo/prelude/querytransform/NonPhrasingSearcher.java')
-rw-r--r-- | container-search/src/main/java/com/yahoo/prelude/querytransform/NonPhrasingSearcher.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |