Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 67661 invoked from network); 13 Feb 2010 19:06:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Feb 2010 19:06:29 -0000 Received: (qmail 36903 invoked by uid 500); 13 Feb 2010 19:06:27 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 36813 invoked by uid 500); 13 Feb 2010 19:06:26 -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 36803 invoked by uid 99); 13 Feb 2010 19:06:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Feb 2010 19:06:26 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of emad.sigma@gmail.com designates 209.85.222.175 as permitted sender) Received: from [209.85.222.175] (HELO mail-pz0-f175.google.com) (209.85.222.175) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Feb 2010 19:06:17 +0000 Received: by pzk5 with SMTP id 5so5350346pzk.29 for ; Sat, 13 Feb 2010 11:05:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type; bh=LmlUjkHMRYY+DVsR49wNnexuOZczcGLlqLVdi9PDVIQ=; b=f/jw2wzLrKr0uZINBS6l2TJL6FEi5O5+sLmoW1eWabfAN9Vhdiuy67D9KtlZ+XN1FP 5q8mzNl2a6Z/1xCD6h4MlrNfQW0nCeN4ewuBSR0MXILNRS1MzlhMqPlS+q4gV8bAOc07 KD460ZZ+T/m3V7X3uUsOaTDb6KO124Uh4t6gY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=WRRNAWR4joFZ0dSZpe3kjmKGfBSf/GmV9MtQj/YLNdcrZgrW/ANwHmva5AE3ssyQ/G uUOvTXucUxkg2xwEz+gVG75Y6GDXn/BjG9sDVeeA/TfMlbFTtbkMzwmbBOeYlLBuYUv7 jZuOLhThaOJXbhj0N0kA+3kidRHGgBZ0q2gEU= MIME-Version: 1.0 Sender: emad.sigma@gmail.com Received: by 10.140.247.20 with SMTP id u20mr2062920rvh.230.1266087955831; Sat, 13 Feb 2010 11:05:55 -0800 (PST) In-Reply-To: References: <4B74C31C.6070903@gmail.com> Date: Sun, 14 Feb 2010 00:05:55 +0500 X-Google-Sender-Auth: fbc254b7d594aed1 Message-ID: Subject: Re: How to reindex data without restarting server From: Emad Mushtaq To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=000e0cd10620dc9ca1047f80129d X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd10620dc9ca1047f80129d Content-Type: text/plain; charset=ISO-8859-1 How do I SWAP the old_core with the new_core. Is it to be done manually or does solr provide with a command for doing so. What if I don't make a new core, make changes to the existing core, reindex it and then utilize the RELOAD command. Would this be a bad approach ? On Sat, Feb 13, 2010 at 10:10 AM, Chris Hostetter wrote: > > : if you use the core model via solr.xml you can reload a core without > having to > : to restart the servlet container, > : http://wiki.apache.org/solr/CoreAdmin > > For making a schema change, the steps would be: > - create a "new_core" with the new schema > - reindex all the docs into "new_core" > - "SWAP" "old_core" and "new_core" so all the old URLs now point at the > new core with the new schema. > > -Hoss > > -- Muhammad Emad Mushtaq http://www.emadmushtaq.com/ --000e0cd10620dc9ca1047f80129d--