Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 99317 invoked from network); 23 Jan 2007 15:50:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jan 2007 15:50:07 -0000 Received: (qmail 90006 invoked by uid 500); 23 Jan 2007 15:50:06 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 89979 invoked by uid 500); 23 Jan 2007 15:50:06 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 89968 invoked by uid 99); 23 Jan 2007 15:50:05 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 07:50:05 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [132.68.238.33] (HELO mailgw2.technion.ac.il) (132.68.238.33) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 07:49:56 -0800 Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgw2.technion.ac.il (Postfix) with ESMTP id 72D7C390231 for ; Tue, 23 Jan 2007 17:49:34 +0200 (IST) X-Virus-Scanned: by amavisd-new at technion.ac.il Received: from mailgw2.technion.ac.il ([127.0.0.1]) by localhost (mailgw2.technion.ac.il [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zauMqr11cMN8 for ; Tue, 23 Jan 2007 17:49:34 +0200 (IST) Received: from fermat.math.technion.ac.il (fermat.math.technion.ac.il [132.68.115.6]) by mailgw2.technion.ac.il (Postfix) with ESMTP id 48109390136 for ; Tue, 23 Jan 2007 17:49:34 +0200 (IST) Received: from fermat.math.technion.ac.il (localhost [127.0.0.1]) by fermat.math.technion.ac.il (8.12.10/8.12.10) with ESMTP id l0NFnXr2018952 for ; Tue, 23 Jan 2007 17:49:33 +0200 (IST) Received: (from nyh@localhost) by fermat.math.technion.ac.il (8.12.10/8.12.10/Submit) id l0NFnXQl018951 for java-user@lucene.apache.org; Tue, 23 Jan 2007 17:49:33 +0200 (IST) X-Authentication-Warning: fermat.math.technion.ac.il: nyh set sender to nyh@math.technion.ac.il using -f Date: Tue, 23 Jan 2007 17:49:33 +0200 From: "Nadav Har'El" To: java-user@lucene.apache.org Subject: Re: NO_NORMS and TOKENIZED? Message-ID: <20070123154933.GA18721@fermat.math.technion.ac.il> References: <20070123151617.GA17694@fermat.math.technion.ac.il> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Hebrew-Date: 4 Shevat 5767 X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Jan 23, 2007, Yonik Seeley wrote about "Re: NO_NORMS and TOKENIZED?": > >When adding a field to a document, Field.Index gives me four options: NO, > >NO_NORMS, TOKENIZED and UN_TOKENIZED. >.. > >What can I do if I want to index the field's value *with* an Analyzer, but > >still disable the storing of norms (because the field length should not be > >considered in scoring)? >... > I hadn't added a Field.Index option at all, and Doug suggested > NO_NORMS, probably because it's mostly harmless to new users who might > disable length normalization without realizing the implications. > > For other fields, I prefer use of setOmitNorms() Thanks! I wasn't aware of this method. It's exactly what I needed. I never thought of trying to modify the Field after construction... Perhaps the NO_NORMS javadoc should refer to setOmitNorms()? (Or I should learn to search the documentation better :-)). -- Nadav Har'El | Tuesday, Jan 23 2007, 4 Shevat 5767 IBM Haifa Research Lab |----------------------------------------- |Today is the tomorrow you worried about http://nadav.harel.org.il |yesterday, and now you know why. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org