Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 42135 invoked from network); 27 Oct 2009 03:11:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Oct 2009 03:11:09 -0000 Received: (qmail 93302 invoked by uid 500); 27 Oct 2009 03:11:07 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 93155 invoked by uid 500); 27 Oct 2009 03:11:07 -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 93143 invoked by uid 99); 27 Oct 2009 03:11:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2009 03:11:06 +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 SRS0=JbDMYv=GQ=lucasmail.org=paul@yourhostingaccount.com designates 65.254.253.122 as permitted sender) Received: from [65.254.253.122] (HELO mailout15.yourhostingaccount.com) (65.254.253.122) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2009 03:10:57 +0000 Received: from mailscan06.yourhostingaccount.com ([10.1.15.6] helo=mailscan06.yourhostingaccount.com) by mailout15.yourhostingaccount.com with esmtp (Exim) id 1N2cSC-0007hC-Ew for java-user@lucene.apache.org; Mon, 26 Oct 2009 23:10:36 -0400 Received: from impout03.yourhostingaccount.com ([10.1.55.3] helo=impout03.yourhostingaccount.com) by mailscan06.yourhostingaccount.com with esmtp (Exim) id 1N2cSC-0006j8-F2 for java-user@lucene.apache.org; Mon, 26 Oct 2009 23:10:36 -0400 Received: from authsmtp02.yourhostingaccount.com ([10.1.18.2]) by impout03.yourhostingaccount.com with NO UCE id xfAc1c00202goRm0000000; Mon, 26 Oct 2009 23:10:36 -0400 X-EN-OrigOutIP: 10.1.18.2 X-EN-IMPSID: xfAc1c00202goRm0000000 Received: from ool-457a3c06.dyn.optonline.net ([69.122.60.6] helo=[192.168.1.112]) by authsmtp02.yourhostingaccount.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim) id 1N2cSC-0000n4-Ck for java-user@lucene.apache.org; Mon, 26 Oct 2009 23:10:36 -0400 From: "Paul J. Lucas" Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Subject: Deleting documents using "starts with" Date: Mon, 26 Oct 2009 20:10:34 -0700 Message-Id: <6B8A45E4-B643-4522-9DFA-875AC7E60A0B@lucasmail.org> To: java-user@lucene.apache.org Mime-Version: 1.0 (Apple Message framework v1076) X-Mailer: Apple Mail (2.1076) X-EN-UserInfo: 19b3ee6e8bc35660ab25150f3ce1009e:104eb4694f5dc54e252b420fd863a3b6 X-EN-AuthUser: paul@pauljlucas.org Sender: "Paul J. Lucas" X-EN-OrigIP: 69.122.60.6 X-EN-OrigHost: ool-457a3c06.dyn.optonline.net X-Virus-Checked: Checked by ClamAV on apache.org I currently have code that looks like: Term[] terms = new Term[]{ new Term( key1, value1 ), new Term( key2, value2 ) }; writer.deleteDocuments( terms ); I want to change things such that it will delete all documents having key2's value start with value2, i.e., if value2 were "foo" then I want all documents to be deleted where key2's value starts with "foo" (i.e., "foo*"). I still want key1's value to match value1 exactly, however. What's the simplest way to do do what I want? Thanks. - Paul --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org