Just gathering more information on this Solr-JDBC; Is it a open source plugin provided on https://github.com/shopping24/ and not part of actual project *lucene-solr* project?
https://github.com/shopping24/solr-jdbc-synonyms Amrit Sarkar Search Engineer Lucidworks, Inc. 415-589-9269 www.lucidworks.com Twitter http://twitter.com/lucidworks LinkedIn: https://www.linkedin.com/in/sarkaramrit2 On Tue, May 9, 2017 at 4:30 PM, sajjad karimi <skarim...@gmail.com> wrote: > http://stackoverflow.com/questions/43857712/could-not-initialize-class- > jdbcsynonymfilterfactory > : > > > I'm new to solr, I want to add a field type with JdbcSynonymFilter and > JdbcStopFilter to solr schema. I added my data source same as instruction > in this link: [Loading stopwords from Postgresql to Solr6][1] > > then i configured managed-schema with code below: > > <fieldType name="new_string" class="solr.TextField"> > <analyzer> > <tokenizer class="solr.PatternTokenizerFactory" > pattern="[\s]+" > /> > <filter > class="com.s24.search.solr.analysis.jdbc.JdbcSynonymFilterFactory" > sql="SELECT concat(term, '=>', use) as line FROM thesaurus;" > dataSource="jdbc/dsTest" ignoreCase="false" expand="true" /> > <filter > class="com.s24.search.solr.analysis.jdbc.JdbcStopFilterFactory" > sql="SELECT stopword FROM stopwords" > dataSource="jdbc/dsTest"/> > </analyzer> > </fieldType> > > I added solr-jdbc to dist folder, postgressql driver, beanutils and > dbutils to contrib/jdbc/lib folder. Then, I included libs in solrconfig.xml > of data_driven_schema_configs: > > <lib dir="${solr.install.dir:../../../..}/contrib/jdbc/lib" > regex=".*\.jar" /> > <lib dir="${solr.install.dir:../../../..}/dist/" > regex="solr-jdbc-\d.*\.jar" /> > > I encountered the following error when I was trying to start SolrCloud. > > > "Could not initialize class > com.s24.search.solr.analysis.jdbc.JdbcSynonymFilterFactory, > trace=java.lang.NoClassDefFoundError: > Could not initialize class > com.s24.search.solr.analysis.jdbc.JdbcSynonymFilterFactory" > > > [1]: > http://stackoverflow.com/questions/43724758/loading- > stopwords-from-postgresql-to-solr6?noredirect=1#comment74559858_43724758 >