summaryrefslogtreecommitdiffstats
path: root/container-search
diff options
context:
space:
mode:
authorJo Kristian Bergum <bergum@yahooinc.com>2023-08-17 10:29:41 +0200
committerJo Kristian Bergum <bergum@yahooinc.com>2023-08-17 10:29:41 +0200
commit6225d0b31552ab1e9a86d102ca0b1b1ef36f390b (patch)
tree770c9cfe21d0f37261a19f706e04878120bec584 /container-search
parent43eae4a4c62c9dc4addda09e62720dbdfb0609ec (diff)
Add link for common runtime error
Diffstat (limited to 'container-search')
-rw-r--r--container-search/src/main/java/com/yahoo/search/query/ranking/RankFeatures.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/query/ranking/RankFeatures.java b/container-search/src/main/java/com/yahoo/search/query/ranking/RankFeatures.java
index f288010a633..724325051f9 100644
--- a/container-search/src/main/java/com/yahoo/search/query/ranking/RankFeatures.java
+++ b/container-search/src/main/java/com/yahoo/search/query/ranking/RankFeatures.java
@@ -95,7 +95,9 @@ public class RankFeatures implements Cloneable {
if (feature == null) return Optional.empty();
if (feature instanceof Tensor) return Optional.of((Tensor)feature);
if (feature instanceof Double) return Optional.of(Tensor.from((Double)feature));
- throw new IllegalArgumentException("Expected '" + name + "' to be a tensor, but it is the string '" + feature + "'");
+ throw new IllegalArgumentException("Expected '" + name + "' to be a tensor, but it is the string '" + feature +
+ "', this usually means that '" + name + "' is not defined in the schema. " +
+ "See https://docs.vespa.ai/en/tensor-user-guide.html#querying-with-tensors");
}
/**