[ https://issues.apache.org/jira/browse/SOLR-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Koji Sekiguchi resolved SOLR-2909. ---------------------------------- Resolution: Fixed Fix Version/s: 4.0 3.6 trunk: Committed revision 1291541. branch_3x: Committed revision 1291543. Thanks, everyone! > Add support for ResourceLoaderAware tokenizerFactories in synonym filter > factories > ---------------------------------------------------------------------------------- > > Key: SOLR-2909 > URL: https://issues.apache.org/jira/browse/SOLR-2909 > Project: Solr > Issue Type: Improvement > Components: Schema and Analysis > Affects Versions: 3.4, 4.0 > Reporter: Tom Klonikowski > Assignee: Koji Sekiguchi > Priority: Minor > Fix For: 3.6, 4.0 > > Attachments: SOLR-2909.patch > > > The optional custom tokenizerFactory in SlowSynonymFilterFactory and > FSTSynonymFilterFactory might require the ResourceLoader information. Thus > inform(ResourceLoader) should be called if the specified tokenizerFactory is > an instance of ResourceLoaderAware. > {noformat} > private static TokenizerFactory loadTokenizerFactory(ResourceLoader loader, > String cname, Map<String, String> args) { > TokenizerFactory tokFactory = (TokenizerFactory) loader.newInstance(cname); > tokFactory.init(args); > if (tokFactory instanceof ResourceLoaderAware) { > ((ResourceLoaderAware) tokFactory).inform(loader); > } > return tokFactory; > } > {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org