protected AbstractAnalysisFactory(Map<String,String> args){
  originalArgs=Collections.unmodifiableMap(new HashMap<>(args));
  String version=get(args,LUCENE_MATCH_VERSION_PARAM);
  if (version == null) {
    luceneMatchVersion=Version.LATEST;
  }
 else {
    try {
      luceneMatchVersion=Version.parseLeniently(version);
    }
 catch (    ParseException pe) {
      throw new IllegalArgumentException(pe);
    }
  }
  args.remove(CLASS_NAME);
}

protected AbstractAnalysisFactory ( Map < String , String > args ) { originalArgs = Collections . unmodifiableMap ( new HashMap < > ( args ) ) ; String version = get ( args , LUCENE_MATCH_VERSION_PARAM ) ; if ( version == null ) { luceneMatchVersion = Version . LATEST ; } else { try { luceneMatchVersion = Version . parseLeniently ( version ) ; } catch ( ParseException pe ) { throw new IllegalArgumentException ( pe ) ; } } args . remove ( CLASS_NAME ) ; }
initialize this factory via a set of key - value pairs .
