Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 77720 invoked from network); 10 May 2006 09:33:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 May 2006 09:33:14 -0000 Received: (qmail 58640 invoked by uid 500); 10 May 2006 09:32:37 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 58612 invoked by uid 500); 10 May 2006 09:32:37 -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 58601 invoked by uid 99); 10 May 2006 09:32:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2006 02:32:37 -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 cwho.work@gmail.com designates 64.233.162.192 as permitted sender) Received: from [64.233.162.192] (HELO nz-out-0102.google.com) (64.233.162.192) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 May 2006 02:32:36 -0700 Received: by nz-out-0102.google.com with SMTP id z3so1146626nzf for ; Wed, 10 May 2006 02:32:15 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=CuKSjoTxoHqNXDxVpBdz7KWmuXpX7JxodyJVVJ9Alz8B2ikxFtpbVxmCRvfTiiWi8o7ku545UO/vSy0FC7EZ7BDdxetYFJmhaFKjtC5hAGMIB7PbDEKTcsUHnb9IzSJhmY5+h4C2h+zEoq7KhyTyzn7zzQZXF2IsTpuPJbACMDc= Received: by 10.36.252.58 with SMTP id z58mr645076nzh; Wed, 10 May 2006 02:32:15 -0700 (PDT) Received: by 10.36.113.1 with HTTP; Wed, 10 May 2006 02:32:15 -0700 (PDT) Message-ID: <6c33f9950605100232q6eefd51cv2b589c466e56318a@mail.gmail.com> Date: Wed, 10 May 2006 17:32:15 +0800 From: "Chun Wei Ho" To: java-user@lucene.apache.org Subject: Adding a new search field but needs searching for all MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I have a large Lucene index that I am planning on adding one or more search fields, and perform searches on them. How do I include results from the other documents that do not have the new field? For example, I have 10 million documents in a index, and I update 200 of them adding the field "b" =3D 1, 100 of them with field "b" =3D 2. How do I write a query such that I can specify "b" !=3D 1 and get 10million minus 100 (including the ones that do not have the field "b"). Or do I have to update all the documents (potentially time consuming since it means deleting and inserting each document in turn??)? --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org