public static IndexingOperation fromStream(SimpleCharStream input,
                                               boolean multiLine,
                                               Linguistics linguistics,
                                               Map<String, Chunker> chunkers,
                                               Map<String, Embedder> embedders,
                                               Map<String, FieldGenerator> generators) throws ParseException {
        ScriptParserContext config = new ScriptParserContext(linguistics, chunkers, embedders, generators);
        config.setInputStream(input);
        ScriptExpression exp;
        try {
            if (multiLine) {
                exp = ScriptExpression.newInstance(config);
            } else {
                exp = new ScriptExpression(StatementExpression.newInstance(config));
            }
        } catch (com.yahoo.vespa.indexinglanguage.parser.ParseException e) {
            ParseException t = new ParseException("Could not parse indexing statement: " + Exceptions.toMessageString(e));
            t.initCause(e);
            throw t;
        }
        return new IndexingOperation(exp);
    }
Creates an indexing operation which will use the simple linguistics implementation suitable for testing
config-model/src/main/java/com/yahoo/schema/fieldoperation/IndexingOperation.java