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:
Erik Hatcher 2008-03-17 23:57:59 +00:00
parent 0e857b7324
commit 1c1627b8c0
1 changed files with 6 additions and 5 deletions

View File

@ -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>>();
for (TokenFilterFactory filtfac : filtfacs) {
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);
}
}