But I think Solr 3.6 is too far back to fall back to as I'm already using Solr 5.1.
Regards, Edwin On 14 June 2015 at 14:49, Upayavira <u...@odoko.co.uk> wrote: > When in 2012? I'd give it a go with Solr 3.6 if you don't want to modify > the library. > > Upayavira > > On Sun, Jun 14, 2015, at 04:14 AM, Zheng Lin Edwin Yeo wrote: > > I'm still trying to find out which version it is compatible for, but the > > document which I've followed is written in 2012. > > > > http://java.dzone.com/articles/indexing-chinese-solr > > > > Regards, > > Edwin > > > > > > On 12 June 2015 at 20:15, Upayavira <u...@odoko.co.uk> wrote: > > > > > Not knowing anything about paoding, it seems that this library isn't > > > compatible with the current version of Solr/Lucene. Have a look at the > > > version that it was compiled for. Having looked at the date of the > > > latest download (2008) Lucene has changed a LOT since then, so some > > > conversion work will definitely be needed to make it work. > > > > > > Upayavira > > > > > > On Fri, Jun 12, 2015, at 08:28 AM, Zheng Lin Edwin Yeo wrote: > > > > I'm trying to use Paoding to index Chinese characters in Solr. > > > > > > > > I'm using Solr 5.1, have downloaded the dictionary to shard1\dic and > > > > shard2\dic, and have configured the following in schema,xml > > > > > > > > <fieldType name="text_chinese" class="solr.TextField"> > > > > <analyzer class="net.paoding.analysis.analyzer.PaodingAnalyzer"/> > > > > </fieldType> > > > > > > > > I've also included -DPAODING_DIC_HOME=/dic during my startup of Solr > > > > > > > > However, when I tried to start Solr, I get the following error: > > > > > > > > java.lang.VerifyError: class > > > > net.paoding.analysis.analyzer.PaodingAnalyzerBean overrides final > > > > method > > > > > > > > tokenStream.(Ljava/lang/String;Ljava/io/Reader;)Lorg/apache/lucene/analysis/TokenStream; > > > > at java.lang.ClassLoader.defineClass1(Native Method) > > > > at java.lang.ClassLoader.defineClass(Unknown Source) > > > > at java.security.SecureClassLoader.defineClass(Unknown Source) > > > > at java.net.URLClassLoader.defineClass(Unknown Source) > > > > at java.net.URLClassLoader.access$100(Unknown Source) > > > > at java.net.URLClassLoader$1.run(Unknown Source) > > > > at java.net.URLClassLoader$1.run(Unknown Source) > > > > at java.security.AccessController.doPrivileged(Native Method) > > > > at java.net.URLClassLoader.findClass(Unknown Source) > > > > at > > > > org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:421) > > > > at > > > > org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383) > > > > at java.lang.ClassLoader.defineClass1(Native Method) > > > > at java.lang.ClassLoader.defineClass(Unknown Source) > > > > at java.security.SecureClassLoader.defineClass(Unknown Source) > > > > at java.net.URLClassLoader.defineClass(Unknown Source) > > > > at java.net.URLClassLoader.access$100(Unknown Source) > > > > at java.net.URLClassLoader$1.run(Unknown Source) > > > > at java.net.URLClassLoader$1.run(Unknown Source) > > > > at java.security.AccessController.doPrivileged(Native Method) > > > > at java.net.URLClassLoader.findClass(Unknown Source) > > > > at > > > > org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:421) > > > > at java.lang.ClassLoader.loadClass(Unknown Source) > > > > at java.net.FactoryURLClassLoader.loadClass(Unknown Source) > > > > at java.lang.ClassLoader.loadClass(Unknown Source) > > > > at java.net.FactoryURLClassLoader.loadClass(Unknown Source) > > > > at java.lang.ClassLoader.loadClass(Unknown Source) > > > > at java.lang.Class.forName0(Native Method) > > > > at java.lang.Class.forName(Unknown Source) > > > > at > > > > org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:476) > > > > at > > > > org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:423) > > > > at > > > > org.apache.solr.schema.FieldTypePluginLoader.readAnalyzer(FieldTypePluginLoader.java:262) > > > > at > > > > org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:94) > > > > at > > > > org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:42) > > > > at > > > > org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:151) > > > > at > > > org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:489) > > > > at > org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:175) > > > > at > > > > org.apache.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:55) > > > > at > > > > org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:69) > > > > at > > > > org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:102) > > > > at > > > > org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:74) > > > > at > > > org.apache.solr.core.CoreContainer.create(CoreContainer.java:516) > > > > at > > > org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:283) > > > > at > > > org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:277) > > > > at java.util.concurrent.FutureTask.run(Unknown Source) > > > > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown > > > Source) > > > > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown > > > Source) > > > > at java.lang.Thread.run(Unknown Source) > > > > > > > > > > > > Is there anything which I've done wrong or missed out? > > > > > > > > > > > > Regards, > > > > Edwin > > > >