I'm using the google library which I has mentioned in my first mail saying Im 
using http://code.google.com/p/language-detection/. I have downloaded the jar 
file from the below url

https://www.versioneye.com/java/org.apache.solr:solr-langid/3.6.1


Please let me know from where I need to download the correct jar file.

Regards,
Poornima


On Tuesday, 8 July 2014 3:42 PM, Alexandre Rafalovitch <arafa...@gmail.com> 
wrote:
 


I just realized you are not using Solr language detect libraries. You
are using third party one. You did mention that in your first message.

I don't see that library integrated with Solr though, just as a
standalone library. So, you can't just plug in it.

Is there any reason you cannot use one of the two libraries Solr does
already have (Tika's and Google's)? What's so special about that one?

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 5:08 PM, Poornima Jay <poornima...@rocketmail.com> wrote:
> 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
>>>
>>
>>

Reply via email to