Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 66479 invoked from network); 3 Dec 2009 16:46:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Dec 2009 16:46:57 -0000 Received: (qmail 41031 invoked by uid 500); 3 Dec 2009 16:46:54 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 40946 invoked by uid 500); 3 Dec 2009 16:46:54 -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 40936 invoked by uid 99); 3 Dec 2009 16:46:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Dec 2009 16:46:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of benhei@gmail.com designates 209.85.218.222 as permitted sender) Received: from [209.85.218.222] (HELO mail-bw0-f222.google.com) (209.85.218.222) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Dec 2009 16:46:46 +0000 Received: by bwz22 with SMTP id 22so1337617bwz.5 for ; Thu, 03 Dec 2009 08:46:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=wbsxIx1jmOs6GDqF7E7R/A5Im8NDTKyRqyKBsN4uujQ=; b=PSwQfdXn2c4Uw8Pz43J/nP8hyKlEkgH/kCNgYkOAorjyuMTn5gCIHM4fU1F55e0iRz CBcfOV5NGijU0sooK18u9GoJ8Lr+E+5fbsNZXozUEPtEt/t2L8PZ/2GIeKd/QZfmwZFT Vzi0fUFealTmEiZNQGocUO/jBVLGossEjl5AU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=YTLzCXT1v8IGEPmmuRm409BIi/w32W+8gzsYSHm5/55aCJKyO7agMErmWbothtq/nl lYSwx419FmA5AMJotkNQ8K3Hm2Hc+IoYsZBw0INyi6n783dUJiPK8sRYP+abmoMedGgb 1QcYdrNFbwJ5vi5I+ofsGWZXwsClSAOdLtqiA= MIME-Version: 1.0 Received: by 10.204.10.13 with SMTP id n13mr1935969bkn.60.1259858786392; Thu, 03 Dec 2009 08:46:26 -0800 (PST) Date: Thu, 3 Dec 2009 17:46:26 +0100 Message-ID: <94095f520912030846j5c25f0aetdf5a0f4215a04342@mail.gmail.com> Subject: Norm Value of not existing Field From: Benjamin Heilbrunn To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'm using Lucene 2.9.1 patched with http://issues.apache.org/jira/browse/LUCENE-1260 For some special reason I need to find all documents which contain at least 1 term in a certain field. This works by iterating the norms array only as long as the field exists on every document. For documents without the field the norms array holds the byte-value 124. Where does 124 come from - and is there a way to change it to an other value like -128 (0xFF) for not existing fields? Benjamin --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org