Return-Path: Delivered-To: apmail-lucene-solr-dev-archive@locus.apache.org Received: (qmail 28386 invoked from network); 22 Oct 2008 11:13:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Oct 2008 11:13:18 -0000 Received: (qmail 91046 invoked by uid 500); 22 Oct 2008 11:13:20 -0000 Delivered-To: apmail-lucene-solr-dev-archive@lucene.apache.org Received: (qmail 90918 invoked by uid 500); 22 Oct 2008 11:13:20 -0000 Mailing-List: contact solr-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-dev@lucene.apache.org Received: (qmail 90903 invoked by uid 99); 22 Oct 2008 11:13:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Oct 2008 04:13:20 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Oct 2008 11:12:08 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Ksbdu-0004HM-TC for solr-dev@lucene.apache.org; Wed, 22 Oct 2008 04:12:46 -0700 Message-ID: <20108604.post@talk.nabble.com> Date: Wed, 22 Oct 2008 04:12:46 -0700 (PDT) From: sunnyfr To: solr-dev@lucene.apache.org Subject: Re: where is the connection code in solr's code? In-Reply-To: <5e76b0ad0810220357u60caa688kabfc50a60ba780c5@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: johanna.34@gmail.com References: <20107151.post@talk.nabble.com> <5e76b0ad0810220243l3e3b137cs917aaf34c0ab8b88@mail.gmail.com> <20107401.post@talk.nabble.com> <5e76b0ad0810220308t5293015saff858071a799205@mail.gmail.com> <20107715.post@talk.nabble.com> <5e76b0ad0810220357u60caa688kabfc50a60ba780c5@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Sorry but I don't get what you mean ??=20 ok I've removed encoding parameter but don't get the jdbc program, Noble Paul =E0=B4=A8=E0=B5=8B=E0=B4=AC=E0=B4=BF=E0=B4=B3=E0=B5=8D=E2=80=8D = =E0=A4=A8=E0=A5=8B=E0=A4=AC=E0=A5=8D=E0=A4=B3=E0=A5=8D wrote: >=20 > You may try out a simple jdbc program with the url. If it works with > that it will work with DIH also. >=20 > in your case encoding is not utf-8 . So , it makes no sense to set > that in the connection property >=20 > On Wed, Oct 22, 2008 at 3:43 PM, sunnyfr wrote: >> >> Don't get how ? >> >> > driver=3D"com.mysql.jdbc.Driver" >> >> url=3D"jdbc:mysql://master-spare.videos.com/videos?useUnicode=3Dtrue&cha= racterEncoding=3DUTF-8&characterSetResults=3DUTF-8"" >> user=3D"solr" >> password=3D"pass" >> encoding=3D"UTF-8" >> batchSize=3D"-1" >> /> >> >> I tried that but it doesnt work ? how should I apply "set name uft8;" >> >> >> Noble Paul =E0=B4=A8=E0=B5=8B=E0=B4=AC=E0=B4=BF=E0=B4=B3=E0=B5=8D=E2=80= =8D =E0=A4=A8=E0=A5=8B=E0=A4=AC=E0=A5=8D=E0=A4=B3=E0=A5=8D wrote: >>> >>> in the element there is an attribute url. put it there >>> >>> On Wed, Oct 22, 2008 at 3:25 PM, sunnyfr wrote: >>>> >>>> Hi Noble >>>> How can I append it to the jdbc url? >>>> Thanks a lot >>>> >>>> >>>> Noble Paul =E0=B4=A8=E0=B5=8B=E0=B4=AC=E0=B4=BF=E0=B4=B3=E0=B5=8D=E2= =80=8D =E0=A4=A8=E0=A5=8B=E0=A4=AC=E0=A5=8D=E0=A4=B3=E0=A5=8D 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 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--t= p20107151p20107401.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--tp2= 0107151p20107715.html >> Sent from the Solr - Dev mailing list archive at Nabble.com. >> >> >=20 >=20 >=20 > --=20 > --Noble Paul >=20 >=20 --=20 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.