use of com.yahoo.vespa.indexinglanguage.parser.IndexingInput in project vespa by vespa-engine.
the class SDField method parseIndexingScript.
public void parseIndexingScript(String script, Linguistics linguistics) {
try {
ScriptParserContext config = new ScriptParserContext(linguistics);
config.setInputStream(new IndexingInput(script));
setIndexingScript(ScriptExpression.newInstance(config));
} catch (ParseException e) {
throw new RuntimeException("Failed to parser script '" + script + "'.", e);
}
}
Aggregations