aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/schema/processing/IntegerIndex2Attribute.java
diff options
context:
space:
mode:
authorLester Solbakken <lester.solbakken@gmail.com>2024-04-12 13:04:01 +0200
committerLester Solbakken <lester.solbakken@gmail.com>2024-04-12 13:04:01 +0200
commitb4d6c0856e0313e8925505265121ce743f079ada (patch)
treefd8a28fb707d7dae4ac9c4f19d48aad082cf01ff /config-model/src/main/java/com/yahoo/schema/processing/IntegerIndex2Attribute.java
parente11438c6335038f6d99ea50eef086511eb204d43 (diff)
parentdd996cbeb9ddf7c22089b6115966f03227b35a48 (diff)
Merge branch 'master' into lesters/add-local-llms
Diffstat (limited to 'config-model/src/main/java/com/yahoo/schema/processing/IntegerIndex2Attribute.java')
-rw-r--r--config-model/src/main/java/com/yahoo/schema/processing/IntegerIndex2Attribute.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/config-model/src/main/java/com/yahoo/schema/processing/IntegerIndex2Attribute.java b/config-model/src/main/java/com/yahoo/schema/processing/IntegerIndex2Attribute.java
index 0d296783cfb..37815ef5396 100644
--- a/config-model/src/main/java/com/yahoo/schema/processing/IntegerIndex2Attribute.java
+++ b/config-model/src/main/java/com/yahoo/schema/processing/IntegerIndex2Attribute.java
@@ -38,7 +38,7 @@ public class IntegerIndex2Attribute extends Processor {
ScriptExpression script = field.getIndexingScript();
Set<String> attributeNames = new HashSet<>();
new MyVisitor(attributeNames).visit(script);
- field.setIndexingScript((ScriptExpression)new MyConverter(attributeNames).convert(script));
+ field.setIndexingScript(schema.getName(), (ScriptExpression)new MyConverter(attributeNames).convert(script));
warn(schema, field, "Changed to attribute because numerical indexes (field has type " +
field.getDataType().getName() + ") is not currently supported." +
" Index-only settings may fail. Ignore this warning for streaming search.");