Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EA701D1B1 for ; Thu, 20 Sep 2012 13:11:14 +0000 (UTC) Received: (qmail 20268 invoked by uid 500); 20 Sep 2012 13:11:14 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 20123 invoked by uid 500); 20 Sep 2012 13:11:12 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 20090 invoked by uid 99); 20 Sep 2012 13:11:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2012 13:11:10 +0000 X-ASF-Spam-Status: No, hits=-1.3 required=5.0 tests=FRT_ADOBE2,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mueller@adobe.com designates 64.18.1.35 as permitted sender) Received: from [64.18.1.35] (HELO exprod6og115.obsmtp.com) (64.18.1.35) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2012 13:11:02 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob115.postini.com ([64.18.5.12]) with SMTP ID DSNKUFsV0RLslG3SS9F2TfYpN/WAyDnYBBCa@postini.com; Thu, 20 Sep 2012 06:10:41 PDT Received: from inner-relay-4.eur.adobe.com (inner-relay-4.adobe.com [193.104.215.14]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id q8KD835I022789 for ; Thu, 20 Sep 2012 06:08:03 -0700 (PDT) Received: from nacas03.corp.adobe.com (nacas03.corp.adobe.com [10.8.189.121]) by inner-relay-4.eur.adobe.com (8.12.10/8.12.9) with ESMTP id q8KDAbXM006873 for ; Thu, 20 Sep 2012 06:10:38 -0700 (PDT) Received: from eurcas01.eur.adobe.com (10.128.4.27) by nacas03.corp.adobe.com (10.8.189.121) with Microsoft SMTP Server (TLS) id 8.3.264.0; Thu, 20 Sep 2012 06:10:37 -0700 Received: from eurmbx01.eur.adobe.com ([10.128.4.32]) by eurcas01.eur.adobe.com ([10.128.4.27]) with mapi; Thu, 20 Sep 2012 14:10:36 +0100 From: Thomas Mueller To: "oak-dev@jackrabbit.apache.org" Date: Thu, 20 Sep 2012 14:10:39 +0100 Subject: Re: On custom index configuration Thread-Topic: On custom index configuration Thread-Index: Ac2XMVJ/tYtC8eIsRxa5pKhsf87aPw== Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.3.120616 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Hi, It is problematic to fix the configuration if you don't know where to look, if the configuration can be basically anywhere in the repository. Let's say there are special Lucene indexes configured at: /long/path/deep/in/repository And if you want to switch to another query engine (let's say MongoDB), how can you do that, given you don't know there is an index configured? I guess it's simpler to administrate indexes if the configuration is stored, or at least linked, at a central place. Regards, Thomas On 9/20/12 2:48 PM, "Lukas Kahwe Smith" wrote: > >On Sep 20, 2012, at 2:45 PM, Tommaso Teofili wrote: > >> Hi all, >>=20 >> On 19/set/2012, at 22:47, Lukas Kahwe Smith wrote: >>=20 >>> Hi, >>>=20 >>> Just wanted to bring up how this all relates to custom index solutions >>>(like Solr/ES). Isnt there a risk that by making it possible to attach >>>such configuration to nodes, that it would encourage applications that >>>make it close to impossible to switch to Solr/ES to benefit from their >>>features (especially improved scalability in clustered setups)? >>=20 >> Why do you think so? Actually I'm working on such an integration (w/ >>Solr) and it doesn't sound that bad, on the contrary, as far as I >>understand Jukka's proposal, it should be easier as you could add >>something like: >>=20 >> /path/to/somewhere [jcr:mixinTypes =3D oak:indexed] >> /oak:indexes >> /solr [jcr:primaryType =3D oak:solrIndex, oak:nodeType =3D >>nt:file, url =3D ...] >> /:index { invisible index content } >>=20 >> along with a CommitHook and a QueryIndex specific implementations. > >it just seemed to me like it would encourage a proliferation of very >specialized handlers which bind the content to the specific indexer. >i think it would be ideal if in most cases switching the internal lucene >solution for Solr/ES should work without having to touch anything beyond >a few configs (which can of course be stored inside the repo). The >example you are showing above seems to go into the opposite direction. > >regards, >Lukas Kahwe Smith >mls@pooteeweet.org > > >