public void parseIndexingScript(String schemaName, String script, Linguistics linguistics,
                                    Map<String, Chunker> chunkers,
                                    Map<String, Embedder> embedders,
                                    Map<String, FieldGenerator> generators) {
        try {
            ScriptParserContext config = new ScriptParserContext(linguistics, chunkers, embedders, generators);
            config.setInputStream(new IndexingInput(script));
            setIndexingScript(schemaName, ScriptExpression.newInstance(config));
        } catch (ParseException e) {
            throw new IllegalArgumentException("Failed to parse script '" + script + "'", e);
        }
    }
Parse an indexing expression which will use the simple linguistics implementation suitable for testing
config-model/src/main/java/com/yahoo/schema/document/SDField.java