Return-Path: Delivered-To: apmail-lucene-solr-user-archive@locus.apache.org Received: (qmail 59883 invoked from network); 28 Aug 2008 12:44:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Aug 2008 12:44:25 -0000 Received: (qmail 98988 invoked by uid 500); 28 Aug 2008 12:44:20 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 98962 invoked by uid 500); 28 Aug 2008 12:44:20 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 98937 invoked by uid 99); 28 Aug 2008 12:44:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2008 05:44:20 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [203.104.18.192] (HELO web95216.mail.in2.yahoo.com) (203.104.18.192) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 28 Aug 2008 12:43:21 +0000 Received: (qmail 80911 invoked by uid 60001); 28 Aug 2008 12:42:48 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=m5lkLj6Ck4XKm2yeQkWrZ2kFETtpz1+R2M5hmObaP/Jd9zTf5l2lmW/LdPs410eyBeb1kap1j2dGEB4ohmPFcr37qatqSFXKOrHwjfcGqNVHh5rvCJ28SGP9FEL/X3Ldfun7uUmyw5Te5QEx4iVXXSaMmEgEq4rCFBnWWgJ0W7g=; X-YMail-OSG: tzpPQmIVM1l81xVlty5p96dzyZHvUeNfucFx3M1.z1ga_dkxdI9Q2HAkLnAnMF.kc5hNdIyGwWH3nb6XtuZJK3XjkPCaa0YhYYQHDjE87y4OoaQBAqmtCsGowiaZru_I2igxVYV0_PEt8b5010Veia4- Received: from [59.97.57.76] by web95216.mail.in2.yahoo.com via HTTP; Thu, 28 Aug 2008 18:12:48 IST X-Mailer: YahooMailRC/1042.48 YahooMailWebService/0.7.218.2 Date: Thu, 28 Aug 2008 18:12:48 +0530 (IST) From: Nikhil Chhaochharia Subject: Re: CoreDescriptor explanation and possible bug To: solr-user@lucene.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <178409.71829.qm@web95216.mail.in2.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org I went through the javadocs for the CoreContainer and CoreDescriptor classe= s (20th-Aug nightly, the latest I could find). The steps for creating a So= lrCore now appear to be: (Note for the benefit of those who might stumble = upon this through a websearch - this is not a HOWTO but my best guess which= may not be correct)=0A=0A1. CoreContainer.Initializer.setSolrConfigFilena= me("path/solrconfig.xml")=0A2. cc =3D CoreContainer.Initializer.initialize= ()=0A3. cd =3D new CoreDescriptor(cc, "core01", "path/solrHome/for/core01"= )=0A4. SolrCore sc =3D cc.create(cd)=0A=0AIs this correct?=0A=0A=0ATo spec= ify my problem in another way, I have a solrconfig.xml but no schema.xml. = I create a IndexSchema object at runtime. I want to now get a SolrCore obj= ect.=0A=0AThanks,=0ANikhil=0A=0A=0A=0A=0A=0A----- Original Message ----=0AF= rom: Henrib =0ATo: solr-user@lucene.apache.org=0ASent: = Thursday, 28 August, 2008 5:23:48 PM=0ASubject: Re: CoreDescriptor explanat= ion and possible bug=0A=0A=0AHi,=0AIt is likely to be related to how you in= itialize Solr & create your=0ASolrCore; there has been a few changes to ens= ure there is always a=0ACoreContainer created which (as its name stands), h= olds a reference to all=0Acreated SolrCore.=0AThere is a CoreContainer.Init= ializer class that allows to easily create that=0ACoreContainer (even if yo= u don't have a solr.xml).=0AHope this helps,=0AHenri=0A=0A=0A=0ANikhil Chha= ochharia wrote:=0A> =0A> Hi,=0A> =0A> I have been using nightly builds of S= olr 1.3 with SolrJ for some time now. =0A> I upgraded the Solr jars from th= e 14-Aug nightly and my program would not=0A> compile. I found that SolrCo= re constructor needed a new parameter=0A> CoreDescriptor. I passed null an= d it worked fine.=0A> =0A> I then upgraded to the Solr jars from the 20th-A= ug nightly and it started=0A> throwing NullPointerExceptions. My guess is = that the addition of the=0A> method SolrCore.getStatistics() which has the = line "lst.add("aliases",=0A> getCoreDescriptor().getCoreContainer().getCore= Names(this));" throws the=0A> NPE.=0A> =0A> I searched the wiki and there i= s no mention of CoreDescriptor there. =0A> Could somebody please explain wh= at CoreDescriptor is all about and how it=0A> is supposed to be used?=0A> = =0A> Thanks,=0A> Nikhil=0A> =0A> =0A> =0A=0A-- =0AView this message in cont= ext: http://www.nabble.com/CoreDescriptor-explanation-and-possible-bug-tp19= 197004p19198965.html=0ASent from the Solr - User mailing list archive at Na= bble.com.