Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9DC7372D4 for ; Tue, 6 Sep 2011 16:43:37 +0000 (UTC) Received: (qmail 11569 invoked by uid 500); 6 Sep 2011 16:43:35 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 11504 invoked by uid 500); 6 Sep 2011 16:43:34 -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 11484 invoked by uid 99); 6 Sep 2011 16:43:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2011 16:43:34 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.210.176] (HELO mail-iy0-f176.google.com) (209.85.210.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2011 16:43:25 +0000 Received: by iafi7 with SMTP id i7so11058936iaf.35 for ; Tue, 06 Sep 2011 09:43:03 -0700 (PDT) Received: by 10.231.22.5 with SMTP id l5mr9362533ibb.18.1315327383567; Tue, 06 Sep 2011 09:43:03 -0700 (PDT) Received: from bester.local ([65.78.136.75]) by mx.google.com with ESMTPS id j2sm1540916ibx.11.2011.09.06.09.43.01 (version=SSLv3 cipher=OTHER); Tue, 06 Sep 2011 09:43:02 -0700 (PDT) Date: Tue, 6 Sep 2011 09:42:59 -0700 (PDT) From: Chris Hostetter To: java-user@lucene.apache.org Subject: Re: Changing index-time boosts without reindexing In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : You can use IndexReader's setNorm method? : : It's an expert method, and accepts a new byte norm value for the doc X : field, ie you'll have to compute the right byte value. In particular, you should take a look at the FieldNormModifier utility. It was created for the purpose of trying out different similarity implementations based on field length (when index boosts aren't used) but even if it doesn't serve your exact purpose, the way the code works should be educational to serving your goal. https://lucene.apache.org/java/3_3_0/api/all/org/apache/lucene/index/FieldNormModifier.html -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org