src/main/java/com/s24/search/solr/analysis/jdbc/JdbcReaderFactory.java
public static JdbcReader createFromSolrParams(Map<String, String> config, String originalParamName) {
      Preconditions.checkNotNull(config);

      // Set a fixed synonyms "file".
      // This "file" will be loaded from the database by the JdbcResourceLoader.
      if (originalParamName != null) {
         config.put(originalParamName, JdbcResourceLoader.DATABASE);
      }

      DataSource dataSource = JdbcDataSourceFactory.getDataSource(config);
      String sql = config.remove(JdbcReaderFactoryParams.SQL);
      String ignoreString = config.remove(JdbcReaderFactoryParams.IGNORE);
      boolean ignore = !"false".equals(ignoreString);

      return new SimpleJdbcReader(dataSource, sql, ignore);
   }
public static JdbcReader createFromSolrParams(Map<String, String> config, String originalParamName) {
      Preconditions.checkNotNull(config);

      // Set a fixed synonyms "file".
      // This "file" will be loaded from the database by the JdbcResourceLoader.
      if (originalParamName != null) {
         config.put(originalParamName, JdbcResourceLoader.DATABASE);
      }

      DataSource dataSource = JdbcDataSourceFactory.getDataSource(config);
      String sql = config.remove(JdbcReaderFactoryParams.SQL);
      String ignoreString = config.remove(JdbcReaderFactoryParams.IGNORE);
      boolean ignore = !"false".equals(ignoreString);

      return new SimpleJdbcReader(dataSource, sql, ignore);
   }
Create the {@link JdbcReader} from configuration.

Set synonyms file to a fixed name.
This is needed because our patched resource loader should load the synonyms exactly once.

@param config
Configuration.
@param originalParamName
Default synonym file name.
@return JdbcReader.