Search in sources :

Example 1 with PreAnalyzedField

use of org.apache.solr.schema.PreAnalyzedField in project lucene-solr by apache.

the class PreAnalyzedUpdateProcessor method inform.

@Override
public void inform(SolrCore core) {
    super.inform(core);
    parser = new PreAnalyzedField();
    Map<String, String> args = new HashMap<>();
    if (parserImpl != null) {
        args.put(PreAnalyzedField.PARSER_IMPL, parserImpl);
    }
    parser.init(core.getLatestSchema(), args);
}
Also used : HashMap(java.util.HashMap) PreAnalyzedField(org.apache.solr.schema.PreAnalyzedField)

Aggregations

HashMap (java.util.HashMap)1 PreAnalyzedField (org.apache.solr.schema.PreAnalyzedField)1