summaryrefslogtreecommitdiffstats
path: root/container-search/src/main
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2024-03-06 08:37:32 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2024-03-06 09:09:57 +0100
commitbd1de86cef2903a4918a88e31cad72ef428365ce (patch)
tree3887e712d437a2f475f9b671f1eec37c1db410d8 /container-search/src/main
parent266b744d85348796a6ca8e3586e8ac6e758f8cae (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')
-rw-r--r--container-search/src/main/java/com/yahoo/prelude/cluster/ClusterSearcher.java2
-rw-r--r--container-search/src/main/java/com/yahoo/prelude/querytransform/NonPhrasingSearcher.java2
-rw-r--r--container-search/src/main/java/com/yahoo/search/schema/SchemaInfoConfigurer.java1
3 files changed, 2 insertions, 3 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/cluster/ClusterSearcher.java b/container-search/src/main/java/com/yahoo/prelude/cluster/ClusterSearcher.java
index b0456b941f4..3822fa575d6 100644
--- a/container-search/src/main/java/com/yahoo/prelude/cluster/ClusterSearcher.java
+++ b/container-search/src/main/java/com/yahoo/prelude/cluster/ClusterSearcher.java
@@ -150,7 +150,7 @@ public class ClusterSearcher extends Searcher {
searchClusterConfig.searchdef());
ClusterParams clusterParams = makeClusterParams(searchclusterIndex);
StreamingSearcher searcher = new StreamingSearcher(access);
- searcher.setSearchClusterName(searchClusterConfig.rankprofiles().configid());
+ searcher.setSearchClusterName(searchClusterConfig.rankprofiles_configid());
searcher.setDocumentType(searchClusterConfig.searchdef(0));
searcher.setStorageClusterRouteSpec(searchClusterConfig.storagecluster().routespec());
searcher.init(serverId, docSumParams, clusterParams, documentdbInfoConfig, schemaInfo);
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 {
diff --git a/container-search/src/main/java/com/yahoo/search/schema/SchemaInfoConfigurer.java b/container-search/src/main/java/com/yahoo/search/schema/SchemaInfoConfigurer.java
index b576260b85d..d28c2db2b9e 100644
--- a/container-search/src/main/java/com/yahoo/search/schema/SchemaInfoConfigurer.java
+++ b/container-search/src/main/java/com/yahoo/search/schema/SchemaInfoConfigurer.java
@@ -3,7 +3,6 @@ package com.yahoo.search.schema;
import com.yahoo.container.QrSearchersConfig;
import com.yahoo.search.config.SchemaInfoConfig;
-import com.yahoo.tensor.TensorType;
import java.util.ArrayList;
import java.util.List;