mirror of https://github.com/apache/lucene.git
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:
parent
49d7932a92
commit
eb90bb0afa
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue