SOLR-843: SynonymFilterFactory cannot handle multiple synonym files correctly

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@712457 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Koji Sekiguchi 2008-11-09 01:24:11 +00:00
parent 49d7932a92
commit eb90bb0afa
2 changed files with 4 additions and 1 deletions

View File

@ -107,6 +107,7 @@ Bug Fixes
6. SOLR-837: Fix inject parameter on PhoneticFilterFactory and DoubleMetaphoneFilterFactory.
(ehatcher)
7. SOLR-843: SynonymFilterFactory cannot handle multiple synonym files correctly (koji)
Other Changes

View File

@ -56,8 +56,10 @@ public class SynonymFilterFactory extends BaseTokenFilterFactory implements Reso
wlist = loader.getLines(synonyms);
} else {
List<String> files = StrUtils.splitFileNames(synonyms);
wlist = new ArrayList<String>();
for (String file : files) {
wlist = loader.getLines(file.trim());
List<String> lines = loader.getLines(file.trim());
wlist.addAll(lines);
}
}
} catch (IOException e) {