SOLR-1099: Use NamedList rather than SimpleOrderedMap

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@827032 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Koji Sekiguchi 2009-10-20 11:01:47 +00:00
parent 9b1b5e9206
commit 7d9e22db30
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ public abstract class AnalysisRequestHandlerBase extends RequestHandlerBase {
} catch (IOException e) {
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST, e);
}
NamedList<List<NamedList>> namedList = new SimpleOrderedMap<List<NamedList>>();
NamedList<List<NamedList>> namedList = new NamedList<List<NamedList>>();
namedList.add(tokenStream.getClass().getName(), convertTokensToNamedLists(analyzeTokenStream(tokenStream), context));
return namedList;
}
@ -91,7 +91,7 @@ public abstract class AnalysisRequestHandlerBase extends RequestHandlerBase {
TokenizerFactory tfac = tokenizerChain.getTokenizerFactory();
TokenFilterFactory[] filtfacs = tokenizerChain.getTokenFilterFactories();
NamedList<List<NamedList>> namedList = new SimpleOrderedMap<List<NamedList>>();
NamedList<List<NamedList>> namedList = new NamedList<List<NamedList>>();
if( cfiltfacs != null ){
String source = value;