From solr-user-return-147723-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Mon May 6 18:25:38 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0A73118060F for ; Mon, 6 May 2019 20:25:37 +0200 (CEST) Received: (qmail 84107 invoked by uid 500); 6 May 2019 18:25:32 -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 84093 invoked by uid 99); 6 May 2019 18:25:32 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 May 2019 18:25:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id B213BC54E5 for ; Mon, 6 May 2019 18:25:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.994 X-Spam-Level: * X-Spam-Status: No, score=1.994 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.095, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=ahlbrandsgroup.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id jTMDJQtkQPgB for ; Mon, 6 May 2019 18:25:29 +0000 (UTC) Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id DDF2F61191 for ; Mon, 6 May 2019 18:25:28 +0000 (UTC) Received: by mail-lf1-f50.google.com with SMTP id d8so9854905lfb.8 for ; Mon, 06 May 2019 11:25:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ahlbrandsgroup.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=0sUZ9qBF3tpr3RbmfGln1JXORH/b+FPjy0Y4azIXDuc=; b=rMm0damaLOCb8R11IabN6SyZZ2Rlq6qkgelZhQVg6CKvxhW+Ja+bBdZs11STTT0nbC E62A948kutxVMzymWSCZ2WyalIDUJMKRb4AwCpFCpziZIJb0MDOFQF0gSiGQ6SVp6sw1 zJBJSbhMbnhPVro5ZC57shWu2LECdP7+bnWyI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=0sUZ9qBF3tpr3RbmfGln1JXORH/b+FPjy0Y4azIXDuc=; b=Rz2DShEyOiI7NZQB8/fS4Uo9nta9hAwHAgoeRDlN582lLiCg5lPQOt1jjAFnnZT8Vp FKpm32Qq+iNde0zUORqW+n438JzqPmO2XCeRA+Z0Xv1aCJwj6ZyUvGlt5o78WpwI1OEX JBOaS3Z8AH1/M/CNzy4eJieuJpYqRqBpf9SYPb9G5wJ+D1WNxA0zI5mSfSV1HoyiObtT 7A1h7P/zMqKt0yI7cQ8P//1PLsRzUnS7qyfJE/lAyPH5uXvBZ+vqj+fV8cItPh2krpND NNoVTC4cuPjsy4AGihhADU7JOtcY/OK0MaNmCufSFu3chRMB/+jMWdAZ2h9oU+ifybGQ s5+Q== X-Gm-Message-State: APjAAAUcmIeS9//+pbJ+sO3v1YP5g7zW3mxy3BeHVBGoZcbVJnxNNfnx 99uYNrLw0HSey4twCvh1pJXoSLEpoXVuwwAq+kcMaxLCAI4= X-Google-Smtp-Source: APXvYqznaaM2kMtniOBmk/w/QxgmagrLE0pduwjqDrUUPgtwL6gouHJxV5iByTHGT9OO2UZ4wQDEMuvIheQcisf15JY= X-Received: by 2002:a19:550d:: with SMTP id n13mr13665631lfe.127.1557167127362; Mon, 06 May 2019 11:25:27 -0700 (PDT) MIME-Version: 1.0 References: <0b3c9237-57ea-2f2e-4022-63500ae2c198@elyograg.org> In-Reply-To: From: Doug Reeder Date: Mon, 6 May 2019 14:25:16 -0400 Message-ID: Subject: Re: Reverse-engineering existing installation To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary="0000000000007b9baa05883c39c0" --0000000000007b9baa05883c39c0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks, xmlstarlet makes it straightforward to get the canonical XML. It looks like our schema.xml files are rather different from files like solr/example/solr/collection1/conf/schema.xml Any suggestions of sections I should focus on? On Sat, May 4, 2019 at 8:11 AM Alexandre Rafalovitch wrote: > XMLStarlet still works just fine. So if you want the fast way, that is th= e > one. > > Otherwise, some xml editors can do it (not sure which ones) or you can lo= ok > for XSLT or XQuery examples on the web. > > XMLStarlet actually just spits out XSLT internally, or even externally if > you ask. > > Regards, > Alex > > > On Fri, May 3, 2019, 10:30 PM Doug Reeder, > wrote: > > > Thanks! Diffs for solr.xml and zoo.cfg were easy, but it looks like we'= ll > > need to strip the comments before we can get a useful diff of > > solrconfig.xml or schema.xml. Can you recommend tools to normalize XML > > files? XMLStarlet is hosted on SourceForge, which I no longer trust, a= nd > > hasn't been updated in years. > > > > > > On Fri, May 3, 2019 at 4:24 PM Shawn Heisey wrote= : > > > > > On 5/3/2019 1:44 PM, Erick Erickson wrote: > > > > Then git will let you check out any previous branch. 4.2 is from > before > > > we switched to Git, co I=E2=80=99m not sure you can go that far back,= but 4x is > > > probably close enough for comparing configs. > > > > > > Git has all of Lucene's history, and most of Solr's history, back to > > > when Lucene and Solr were merged before the 3.1.0 release. So the 4.= x > > > releases are there: > > > > > > -------------------- > > > elyograg@smeagol:~/asf/lucene-solr$ git checkout > > > releases/lucene-solr/4.2.1 > > > Checking out files: 100% (13209/13209), done. > > > Note: checking out 'releases/lucene-solr/4.2.1'. > > > > > > You are in 'detached HEAD' state. You can look around, make > experimental > > > changes and commit them, and you can discard any commits you make in > > > this state without impacting any branches by performing another > checkout. > > > > > > If you want to create a new branch to retain commits you create, you > may > > > do so (now or later) by using -b with the checkout command again. > > Example: > > > > > > git checkout -b > > > > > > HEAD is now at 50c41a3e5c Lucene Java 4.2.1 release. > > > -------------------- > > > > > > Thanks, > > > Shawn > > > > > > --0000000000007b9baa05883c39c0--