Return-Path: Delivered-To: apmail-lucene-solr-dev-archive@locus.apache.org Received: (qmail 66412 invoked from network); 7 Jun 2006 03:05:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jun 2006 03:05:15 -0000 Received: (qmail 63751 invoked by uid 500); 7 Jun 2006 03:05:15 -0000 Delivered-To: apmail-lucene-solr-dev-archive@lucene.apache.org Received: (qmail 63717 invoked by uid 500); 7 Jun 2006 03:05:14 -0000 Mailing-List: contact solr-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-dev@lucene.apache.org Received: (qmail 63707 invoked by uid 99); 7 Jun 2006 03:05:14 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jun 2006 20:05:14 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of vengroff@gmail.com designates 64.233.184.228 as permitted sender) Received: from [64.233.184.228] (HELO wr-out-0506.google.com) (64.233.184.228) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jun 2006 20:05:12 -0700 Received: by wr-out-0506.google.com with SMTP id i21so84008wra for ; Tue, 06 Jun 2006 20:04:51 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:mime-version:content-type:content-transfer-encoding:x-mailer:in-reply-to:x-mimeole:thread-index:message-id; b=aWzOPXulaE9Cd0yhJdlbdSSNMJCKLcHE1tUx8ytW4/f+wVVVD6Fdlqkw5KtmGWLqzla3TbDiUTNzxEbHSjQG49Gx8VBT7sauj1N+phiSh/uFlGglC7LfMdv03nfZZjHAtTxo3QF1YZHkZEnElthx79dtcx7AiI3bR98g2iR1IIs= Received: by 10.54.101.14 with SMTP id y14mr77679wrb; Tue, 06 Jun 2006 20:04:51 -0700 (PDT) Received: from VENGROFFD810 ( [71.197.229.94]) by mx.gmail.com with ESMTP id 44sm1221207wri.2006.06.06.20.04.50; Tue, 06 Jun 2006 20:04:51 -0700 (PDT) From: "Darren Vengroff" To: Subject: RE: dynamicField + copyField = dynamicCopyField? Date: Tue, 6 Jun 2006 20:04:45 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcaJ0VmJb5Y4gfvLRZWVlrbpGDVqrQADb5Eg Message-ID: <44864253.00c4b18e.49fa.fffffed4@mx.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Sounds good, I will check it out. -D -----Original Message----- From: Yonik Seeley [mailto:yseeley@gmail.com] Sent: Tuesday, June 06, 2006 6:26 PM To: solr-dev@lucene.apache.org Subject: Re: dynamicField + copyField = dynamicCopyField? Darren, I'm not sure how familiar you are with Lucene, but if you are using dynamicFields (or a lot of indexed fields), check out the omitNorms attribute. Even if your indexed field values are sparse (contained only on a few documents), Lucene keeps a 1 byte norm for each document in the index for each indexed field by default. That can really add up depending on what you are doing. I've considered making it the default for non-text fields in the schema, but I'm worried that some people might try index-time boosts, and they won't work w/o norms. -Yonik On 6/5/06, Darren Vengroff wrote: > Dear Solrians, > > I've been looking through the IndexSchema and DocumentBuilder code, hoping > to find something that is essentially a combination of what dynamicField and > copyField do. Specifically, I'd like to say that any field that matches a > given pattern should be copied to a specific multivalued destination field. > For example, my config might contain something like: > > > multiValued="true"/> > > > text > > > > > The advantage of this approach over pure copyField is that we don't have to > know the full set of text fields up front when we are writing the config > file. If a field name matches both a dynamicField and a dynamicCopyField, > then both behaviors should probably occur, although config files will not > typically be written this way. > > Has anything like this been discussed or implemented before? > > Looking forward to your feedback. > > Thanks, > > -D > > > -- -Yonik http://incubator.apache.org/solr Solr, the open-source Lucene search server