Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 58131916B for ; Fri, 17 Feb 2012 11:52:29 +0000 (UTC) Received: (qmail 16678 invoked by uid 500); 17 Feb 2012 11:52:26 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 16632 invoked by uid 500); 17 Feb 2012 11:52: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 16624 invoked by uid 99); 17 Feb 2012 11:52:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2012 11:52:26 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of andrew.ingram@tangentlabs.co.uk designates 78.136.27.62 as permitted sender) Received: from [78.136.27.62] (HELO mail.tangentlabs.co.uk) (78.136.27.62) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2012 11:52:18 +0000 Received: from [192.168.14.242] ([217.205.197.194]) (authenticated user andrew.ingram@tangentlabs.co.uk) by mail.tangentlabs.co.uk (Kerio Connect 7.1.3) (using TLSv1/SSLv3 with cipher AES128-SHA (128 bits)) for solr-user@lucene.apache.org; Fri, 17 Feb 2012 11:51:56 +0000 From: Andrew Ingram Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Removing empty dynamic fields from a Solr 1.4 index Date: Fri, 17 Feb 2012 11:50:39 +0000 Message-Id: <8D700AE0-6D21-4C9E-9AF5-E9929898325A@tangentlabs.co.uk> To: solr-user@lucene.apache.org Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org Hi all (Note: this question is cross-posted on stackoverflow: = http://stackoverflow.com/questions/9327542/removing-empty-dynamic-fields-f= rom-a-solr-1-4-index) I have a Solr index that uses quite a few dynamic fields. I've recently = changed my code to reduce the amount of data we index with Solr, = significantly reducing the number of dynamic fields that are in use. I've reindexed my data, and the doc count (as displayed in the admin = schema browser) for the old fields has dropped to zero. But I'm confused = as to why the fields still exist. I've done an optimize, and restarted = the server, but I can't find any information on whether there's a way to = get these fields to disappear. Am I now stuck with these fields unless I recreate the index from = scratch? We're talking about a significant reduction in fields (about = 200 -> 30), and I'm worried about the performance impact of keeping them = floating around. Thanks,=20 Andrew Ingram=