Return-Path: Delivered-To: apmail-lucene-solr-user-archive@locus.apache.org Received: (qmail 24451 invoked from network); 18 Sep 2008 11:44:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Sep 2008 11:44:21 -0000 Received: (qmail 23697 invoked by uid 500); 18 Sep 2008 11:44:13 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 23665 invoked by uid 500); 18 Sep 2008 11:44:13 -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 23654 invoked by uid 99); 18 Sep 2008 11:44:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Sep 2008 04:44:13 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jason.rutherglen@gmail.com designates 64.233.184.230 as permitted sender) Received: from [64.233.184.230] (HELO wr-out-0506.google.com) (64.233.184.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Sep 2008 11:43:15 +0000 Received: by wr-out-0506.google.com with SMTP id c30so1877384wra.21 for ; Thu, 18 Sep 2008 04:43:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=EGNGfhRvLJDciRMk09R6e9c55JQqcAY023EecaP+npg=; b=hjznc+Ldo+fz6bxUqJhsMcECGp86PILKEYatD+U9TfX5CRA6O9Xs7szcCBF2QT05Hi CHozuRJYIbHvSxzH6qCHgFKswRUIVbI5VeoRZiKwtg/TGNA3GLrbFTCK8fm7DUNdiuID 1yOcBkjWQ0CZHJTFCgRAk/sdPpnMjatcmPdBE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=BfyzUvF/U4XnH71pKx5fuM5yTeoe5HF5ENVhtlYb0ULflbrmIHSBTvLFjWcTazm4++ GZBF709aQQVM2OIDOyUed543Q/dQlXThqZ74uzRBTYZRyXUXdsVuQmVVO3dfhwa5YxdZ CRNWunC9EGCwZrydUXvQMk3yo214tLDtORxAs= Received: by 10.151.142.16 with SMTP id u16mr1157423ybn.58.1221738227344; Thu, 18 Sep 2008 04:43:47 -0700 (PDT) Received: by 10.151.117.4 with HTTP; Thu, 18 Sep 2008 04:43:47 -0700 (PDT) Message-ID: <85d3c3b60809180443k32b2dab2w5167c2140b549c3d@mail.gmail.com> Date: Thu, 18 Sep 2008 07:43:47 -0400 From: "Jason Rutherglen" To: solr-user@lucene.apache.org Subject: Re: Some new SOLR features In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <85d3c3b60809150734m44797b14m7fae0ce963cf71c8@mail.gmail.com> <85d3c3b60809160712i24573a03g4a912e2e092fb667@mail.gmail.com> <19515526.post@talk.nabble.com> <587CADDC-BBBD-4915-90D7-161D3F5A3474@gmail.com> <19516242.post@talk.nabble.com> <85d3c3b60809171027m2f453f10k5f20dbb82f003919@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org > multi-core allows you to instantiate a completely > new core and swap it for the old one, but it's a bit of a heavyweight > approach. Multi core seems like more of a hack to get around running multiple JVMs. It doesn't seem like the most elegant solutions for most problems because usually the same configuration files can be used, and the schemas will be different. This is true for the systems because they are loading data from an SQL database for indexing which is in separate tables. I put a field in the documents demarking the different tables or object types which then is filtered on. This is not ideal if one wants separation of the term frequencies between the tables and possibly for speed if one table is really small, it should return results faster and not still iterate over the data of the other tables. On Wed, Sep 17, 2008 at 2:21 PM, Yonik Seeley wrote: > On Wed, Sep 17, 2008 at 1:27 PM, Jason Rutherglen > wrote: >> If the configuration code is going to be rewritten then I would like >> to see the ability to dynamically update the configuration and schema >> without needing to reboot the server. > > Exactly. Actually, multi-core allows you to instantiate a completely > new core and swap it for the old one, but it's a bit of a heavyweight > approach. > > The key is finding the right granularity of change. > My current thought is that a schema object would not be mutable, but > that one could easily swap in a new schema object for an index at any > time. That would allow a single request to see a stable view of the > schema, while preventing having to make every aspect of the schema > thread-safe. > >> Also I would like the >> configuration classes to just contain data and not have so many >> methods that operate on the filesystem. > > That's the plan... completely separate the serialized and in memory > representations. > >> This way the configuration >> object can be serialized, and loaded by the server dynamically. It >> would be great for the schema to work the same way. > > Nothing will stop one from using java serialization for config > persistence, however I am a fan of human readable for config files... > so much easier to debug and support. Right now, people can > cut-n-paste relevant parts of their config in email for support, or to > a wiki to explain things, etc. > > Of course, if you are talking about being able to have custom filters > or analyzers (new classes that don't even exist on the server yet), > then it does start to get interesting. This intersects with > deployment in general... and I'm not sure what the right answer is. > What if Lucene or Solr needs an upgrade? It would be nice if that > could also automatically be handled in a a large cluster... what are > the options for handling that? Is there a role here for OSGi to play? > It sounds like at least some of that is outside of the Solr domain. > > An alternative to serializing everything would be to ship a new schema > along with a new jar file containing the custom components. > > -Yonik >