summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/query/properties/QueryProperties.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2021-09-28 21:51:45 +0200
committerGitHub <noreply@github.com>2021-09-28 21:51:45 +0200
commit12a415efca5749433fd22424592ddc18f04160f6 (patch)
tree9324cb3aa2aabfa4fb8f0dc5fc0f7639869db7b1 /container-search/src/main/java/com/yahoo/search/query/properties/QueryProperties.java
parentb57543dc1a1e3d32bcd03afb7af972490d691bf1 (diff)
parente7e659e9d26401c8c36300d4760d4e34acd26d0a (diff)
Merge pull request #19337 from vespa-engine/bratseth/encoder-to-embedderv7.474.25
encode -> embed
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/query/properties/QueryProperties.java')
-rw-r--r--container-search/src/main/java/com/yahoo/search/query/properties/QueryProperties.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/query/properties/QueryProperties.java b/container-search/src/main/java/com/yahoo/search/query/properties/QueryProperties.java
index 02648f84066..3a426656185 100644
--- a/container-search/src/main/java/com/yahoo/search/query/properties/QueryProperties.java
+++ b/container-search/src/main/java/com/yahoo/search/query/properties/QueryProperties.java
@@ -1,7 +1,7 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.search.query.properties;
-import com.yahoo.language.process.Encoder;
+import com.yahoo.language.process.Embedder;
import com.yahoo.processing.IllegalInputException;
import com.yahoo.processing.request.CompoundName;
import com.yahoo.search.Query;
@@ -34,12 +34,12 @@ public class QueryProperties extends Properties {
private Query query;
private final CompiledQueryProfileRegistry profileRegistry;
- private final Encoder encoder;
+ private final Embedder embedder;
- public QueryProperties(Query query, CompiledQueryProfileRegistry profileRegistry, Encoder encoder) {
+ public QueryProperties(Query query, CompiledQueryProfileRegistry profileRegistry, Embedder embedder) {
this.query = query;
this.profileRegistry = profileRegistry;
- this.encoder = encoder;
+ this.embedder = embedder;
}
public void setParentQuery(Query query) {
@@ -380,7 +380,7 @@ public class QueryProperties extends Properties {
if (type == null) return value; // no type info -> keep as string
FieldDescription field = type.getField(key);
if (field == null) return value; // ditto
- return field.getType().convertFrom(value, new ConversionContext(profileRegistry, encoder, context));
+ return field.getType().convertFrom(value, new ConversionContext(profileRegistry, embedder, context));
}
private void throwIllegalParameter(String key,String namespace) {