mirror of https://github.com/apache/lucene.git
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:
parent
9b1b5e9206
commit
7d9e22db30
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue