mirror of https://github.com/apache/lucene.git
Fix issue caused by SOLR-494 with SolrJ unit tests.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@638145 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0e857b7324
commit
1c1627b8c0
|
@ -396,14 +396,15 @@ public class LukeRequestHandler extends RequestHandlerBase
|
|||
aninfo.add("tokenizer", tokenizer);
|
||||
TokenFilterFactory[] filtfacs = tchain.getTokenFilterFactories();
|
||||
|
||||
List<Map<String, Object>> filters = new ArrayList<Map<String, Object>>();
|
||||
SimpleOrderedMap<Map<String, Object>> filters = new SimpleOrderedMap<Map<String, Object>>();
|
||||
for (TokenFilterFactory filtfac : filtfacs) {
|
||||
Map<String, Object> tok = new HashMap<String, Object>();
|
||||
tok.put("className", filtfac.getClass().getName());
|
||||
String className = filtfac.getClass().getName();
|
||||
tok.put("className", className);
|
||||
tok.put("args", filtfac.getArgs());
|
||||
filters.add(tok);
|
||||
filters.add(className.substring(className.lastIndexOf('.')+1), tok);
|
||||
}
|
||||
if (!filters.isEmpty()) {
|
||||
if (filters.size() > 0) {
|
||||
aninfo.add("filters", filters);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue