When i use solr-langid-3.5.0.jar file after reloading the core i am getting the below error
SEVERE: java.lang.NoClassDefFoundError: net/arnx/jsonic/JSONException Even after adding the solr-jsonic-3.5.0.jar file in the webapps folder. Thanks, Poornima On Tuesday, 8 July 2014 3:36 PM, Alexandre Rafalovitch <arafa...@gmail.com> wrote: ---------- Forwarded message ---------- From: Poornima Jay <poornima...@rocketmail.com> Date: Tue, Jul 8, 2014 at 5:03 PM Subject: Re: Language detection for solr 3.6.1 When i try to use solr-langid-3.6.1.jar file in my path /apache-tomcat-5.5.25/webapps/solr_multilangue_3.6_jar/WEB-INF/lib/ and define the path in the solrconfig.xml as below <lib dir="/home/searchuser/apache-tomcat-5.5.25/webapps/solr_multilangue_3.6_jar/WEB-INF/lib/" regex="solr-langid-.*\.jar" /> I am getting the below error while reloading the core. SEVERE: java.lang.NoClassDefFoundError: com/cybozu/labs/langdetect/DetectorFactory Please advice. Thanks, Poornima On Tuesday, 8 July 2014 9:58 AM, Alexandre Rafalovitch <arafa...@gmail.com> wrote: If you are having troubles with jar location, just use absolute path in your lib statement and use path, not dir/regex. That will complain louder. You should be using the latest jar matching the version, they should be shipped with Solr itself. Regards, Alex. Personal website: http://www.outerthoughts.com/ Current project: http://www.solr-start.com/ - Accelerating your Solr proficiency On Tue, Jul 8, 2014 at 11:14 AM, Poornima Jay <poornima...@rocketmail.com> wrote: > I am facing the issue with the jar file location. Where should i place the > solr-langid-3.6.1.jar. If i place it in the instance folder inside > /lib/solr-langid-3.6.1.jar the language detection class are not loaded. > Should i use solr-langid-3.5.1.jar in solr 3.6.1 version? > > Can you please attach the schema file also for reference. > > <lib dir="${user.dir}/../dist/" regex="solr-langid-.*\.jar" /> > <lib dir="${user.dir}/../contrib/langid/lib/" /> > > where exactly the jar file should be placed? /dist/ or /contrib/langid/lib/ > > Thanks for your time. > > Regards, > Poornima > > > > On Monday, 7 July 2014 2:42 PM, Alexandre Rafalovitch <arafa...@gmail.com> > wrote: > > > I've had an example in my book: > https://github.com/arafalov/solr-indexing-book/blob/master/published/languages/conf/solrconfig.xml > , though it was for Solr 4.2+. Solr in Action also has a section on > multilingual indexing. There is no generic advice, as everybody seems > to have slightly different multilingual requirements, but the books > will at least discuss the main issues. > > Regarding your specific email from a week ago, You haven't actually > said what is the problem was. Just what you did. So, we don't know > where you are stuck and what - specifically - you need help with. > > Regards, > Alex. > Personal website: http://www.outerthoughts.com/ > Current project: http://www.solr-start.com/ - Accelerating your Solr > proficiency > > > On Mon, Jul 7, 2014 at 4:06 PM, Poornima Jay <poornima...@rocketmail.com> > wrote: >> Hi, >> >> Please let me know if anyone had used google language detection for >> implementing multilanguage search in one schema. >> >> Thanks, >> Poornima >> >> >> >> >> On Tuesday, 1 July 2014 6:54 PM, Poornima Jay <poornima...@rocketmail.com> >> wrote: >> >> >> Hi, >> >> Can anyone please let me know how to integrate >> http://code.google.com/p/language-detection/ in solr 3.6.1. I want four >> languages (English, chinese simplified, chinese traditional, Japanes, and >> Korean) to be added in one schema ie. multilingual search from single >> schema >> file. >> >> I tried added solr-langdetect-3.5.0.jar in my /solr/contrib/langid/lib/ >> location and in /webapps/solr/WEB-INF/contrib/langid/lib/ and made changes >> in the solrconfig.xml as below >> >> <directoryFactory name="DirectoryFactory" >> class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/> >> >> <updateRequestProcessorChain name="langid"> >> <processor >> >> class="org.apache.solr.update.processor.LangDetectLanguageIdentifierUpdateProcessorFactory"> >> <lst name="invariants"> >> <str name="langid.fl">content_eng</str> >> <str name="langid.map">true</str> >> <str name="langid.map.fl">content_eng,content_ja</str> >> <str name="langid.whitelist">en,ja</str> >> <str name="langid.map.lcmap">en:english ja:japanese</str> >> <str name="langid.fallback">en</str> >> </lst> >> </processor> >> </updateRequestProcessorChain> >> >> <requestHandler name="/update" class="solr.UpdateRequestHandler"> >> <lst name="defaults"> >> <str name="update.chain">langid</str> >> </lst> >> </requestHandler> >> >> Please suggest me the solution. >> >> Thanks, >> Poornima >> > >