diff options
author | Jon Bratseth <bratseth@gmail.com> | 2022-06-13 23:54:13 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2022-06-13 23:54:13 +0200 |
commit | 2475842932c0bf9bc133619900c7c0ddbfda7326 (patch) | |
tree | bdc3ef6f5a72ca833a34bc1b778ff2b412698231 /container-search/src/main/java/com/yahoo/search/Query.java | |
parent | 9740d16edd66800b8d38cd38398ee8d522a94ec6 (diff) |
Support zone context variants for native properties
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/Query.java')
-rw-r--r-- | container-search/src/main/java/com/yahoo/search/Query.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/Query.java b/container-search/src/main/java/com/yahoo/search/Query.java index dcbda80ecab..dc731669a48 100644 --- a/container-search/src/main/java/com/yahoo/search/Query.java +++ b/container-search/src/main/java/com/yahoo/search/Query.java @@ -369,7 +369,7 @@ public class Query extends com.yahoo.processing.Request implements Cloneable { startTime = httpRequest.getJDiscRequest().creationTime(TimeUnit.MILLISECONDS); if (queryProfile != null) { // Move all request parameters to the query profile - Properties queryProfileProperties = new QueryProfileProperties(queryProfile, embedders); + Properties queryProfileProperties = new QueryProfileProperties(queryProfile, embedders, zoneInfo); properties().chain(queryProfileProperties); setPropertiesFromRequestMap(requestMap, properties(), true); @@ -377,11 +377,11 @@ public class Query extends com.yahoo.processing.Request implements Cloneable { properties().chain(new RankProfileInputProperties(schemaInfo, this, embedders)) .chain(new QueryProperties(this, queryProfile.getRegistry(), embedders)) .chain(new ModelObjectMap()) - .chain(new RequestContextProperties(requestMap, zoneInfo)) + .chain(new RequestContextProperties(requestMap)) .chain(queryProfileProperties) .chain(new DefaultProperties()); - // Pass the values from the query profile which maps through a field in the Query object model + // Pass values from the query profile which maps to a field in the Query object model // through the property chain to cause those values to be set in the Query object model with // the right types according to query profiles setFieldsFrom(queryProfileProperties, requestMap); |