lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sunnyfr <johanna...@gmail.com>
Subject Re: where is the connection code in solr's code?
Date Wed, 22 Oct 2008 11:12:46 GMT

Sorry but I don't get what you mean ?? 
ok I've removed encoding parameter but don't get the jdbc program,


Noble Paul നോബിള്‍ नोब्ळ् wrote:
> 
> You may try out a simple jdbc program with the url. If it works with
> that it will work with DIH also.
> 
> in your case encoding is not utf-8 . So , it makes no sense to set
> that in the connection property
> 
> On Wed, Oct 22, 2008 at 3:43 PM, sunnyfr <johanna.34@gmail.com> wrote:
>>
>> Don't get how ?
>>
>>  <dataSource type="JdbcDataSource"
>>              driver="com.mysql.jdbc.Driver"
>>
>> url="jdbc:mysql://master-spare.videos.com/videos?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8""
>>              user="solr"
>>              password="pass"
>>              encoding="UTF-8"
>>              batchSize="-1"
>>              />
>>
>> I tried that but it doesnt work ? how should I apply "set name uft8;"
>>
>>
>> Noble Paul നോബിള്‍ नोब्ळ् wrote:
>>>
>>> in the <datasource> element there is an attribute url. put it there
>>>
>>>  On Wed, Oct 22, 2008 at 3:25 PM, sunnyfr <johanna.34@gmail.com> wrote:
>>>>
>>>> Hi Noble
>>>> How can I append it to the jdbc url?
>>>> Thanks a lot
>>>>
>>>>
>>>> Noble Paul നോബിള്‍ नोब्ळ् wrote:
>>>>>
>>>>> JdbcDataSource.java is the class
>>>>>
>>>>> if you wish to pass in any extra connection parameters you can append
>>>>> it to the jdbc url.
>>>>> --Noble
>>>>>
>>>>> On Wed, Oct 22, 2008 at 3:07 PM, sunnyfr <johanna.34@gmail.com>
wrote:
>>>>>>
>>>>>> Sorry I'm quite new in java, and I would like to find this part to
>>>>>> add
>>>>>> a
>>>>>> query just after the connection :
>>>>>> 'set names utf8'
>>>>>>
>>>>>> To fix up my problem with latin1 and utf8.
>>>>>> Some help would be great, thanks,
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/where-is-the-connection-code-in-solr%27s-code--tp20107151p20107151.html
>>>>>> Sent from the Solr - Dev mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> --Noble Paul
>>>>>
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/where-is-the-connection-code-in-solr%27s-code--tp20107151p20107401.html
>>>> Sent from the Solr - Dev mailing list archive at Nabble.com.
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> --Noble Paul
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/where-is-the-connection-code-in-solr%27s-code--tp20107151p20107715.html
>> Sent from the Solr - Dev mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> --Noble Paul
> 
> 

-- 
View this message in context: http://www.nabble.com/where-is-the-connection-code-in-solr%27s-code--tp20107151p20108604.html
Sent from the Solr - Dev mailing list archive at Nabble.com.


Mime
View raw message