diff options
author | Jon Bratseth <bratseth@gmail.com> | 2021-09-30 13:46:50 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2021-09-30 13:46:50 +0200 |
commit | 9fdcf8f92eaf3b47053fa2c131832dea1c792d0c (patch) | |
tree | c4d8f2a7c8297fce1b4b6f07a32ab0daeac35aaa /container-search/src/main/java/com/yahoo/search/query/profile/types/QueryProfileFieldType.java | |
parent | 1bc2cca4b527bb9a5a8c67744b0796c9fafbe024 (diff) |
Pass destination
This allows embedders to switch on it to enable bucket testing
and similar.
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/query/profile/types/QueryProfileFieldType.java')
-rw-r--r-- | container-search/src/main/java/com/yahoo/search/query/profile/types/QueryProfileFieldType.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/query/profile/types/QueryProfileFieldType.java b/container-search/src/main/java/com/yahoo/search/query/profile/types/QueryProfileFieldType.java index ff12224823f..2b649d81ec8 100644 --- a/container-search/src/main/java/com/yahoo/search/query/profile/types/QueryProfileFieldType.java +++ b/container-search/src/main/java/com/yahoo/search/query/profile/types/QueryProfileFieldType.java @@ -60,7 +60,7 @@ public class QueryProfileFieldType extends FieldType { String profileId = object.toString(); if (profileId.startsWith("ref:")) profileId = profileId.substring("ref:".length()); - CompiledQueryProfile profile = context.getRegistry().getComponent(profileId); + CompiledQueryProfile profile = context.registry().getComponent(profileId); if (profile == null) return null; if (type != null && ! type.equals(profile.getType())) return null; return profile; |