Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 23013 invoked from network); 22 Mar 2011 10:27:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Mar 2011 10:27:29 -0000 Received: (qmail 67254 invoked by uid 500); 22 Mar 2011 10:27:27 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 67217 invoked by uid 500); 22 Mar 2011 10:27:27 -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 67209 invoked by uid 99); 22 Mar 2011 10:27:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2011 10:27:27 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of anshumg@gmail.com designates 209.85.216.176 as permitted sender) Received: from [209.85.216.176] (HELO mail-qy0-f176.google.com) (209.85.216.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2011 10:27:21 +0000 Received: by qyk30 with SMTP id 30so6556642qyk.14 for ; Tue, 22 Mar 2011 03:27:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=OVN+MdZ5TlDwO2GwkB1RIu5C5AKw2HSjPIToClTlniQ=; b=vEeOYHByo5AtRQ8zGdGQDPo/fTd03KUfy3caAf4+QljhgNspCAtqO+wuEQrc18QO6k kBnBEIR5uekLX5xu13klwwC0AV4tEvPY6q4eYLCtlxEnsst28zZVwucPKA3/ZklZ7be0 WyGhe88QbxUf4hd4iOjX7514GIcxWBxBxh+EY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=D7MvREvJ2SpJxjDwZS88SZpZdcIjUgOwOk2L4jEvvB6K05+uq/AeLYIEhbuH4OYVrw togYO89JSnHxKZVhtmTy9pZfrMjtWUuY50Jq77xzLATgPfDZEWiZr7w+Ptkz/d83bzgO LIp7fNXNjPlX7dQDpdr+wduBmp7DZjjBDFL+8= Received: by 10.229.105.96 with SMTP id s32mr4625473qco.35.1300789620559; Tue, 22 Mar 2011 03:27:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.156.162 with HTTP; Tue, 22 Mar 2011 03:26:40 -0700 (PDT) In-Reply-To: <4D887868.7070303@wyona.com> References: <1300777191612-2713888.post@n3.nabble.com> <4D885888.2070309@wyona.com> <4D887868.7070303@wyona.com> From: Anshum Date: Tue, 22 Mar 2011 15:56:40 +0530 Message-ID: Subject: Re: Is it possible to update only selected fields in a document ? To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=00235429d19442d170049f0faf34 X-Virus-Checked: Checked by ClamAV on apache.org --00235429d19442d170049f0faf34 Content-Type: text/plain; charset=ISO-8859-1 Also, Is there a particular reason why you wouldn't want to index that considering you'd want to 'update' documents. Its good practice to index the unique field specially if you have one. It has generally helped more often than not. -- Anshum Gupta http://ai-cafe.blogspot.com On Tue, Mar 22, 2011 at 3:52 PM, Michael Wechner wrote: > On 3/22/11 10:09 AM, shrinath.m wrote: > >> On Tue, Mar 22, 2011 at 1:37 PM, Michael Wechner [via Lucene]< >> ml-node+2714008-984126374-376162@n3.nabble.com> wrote: >> >> are you looking for something like >>> >>> http://hrycan.com/2009/11/26/updating-document-fields-in-lucene/ >>> >>> ? >>> >>> Precisely that. >> I am OK with storing the fields, >> but I wanted to do that without making the *id* field searchable. ( I >> mean, >> *not indexed* => Field.Index.NO) >> >> Is that possible ? >> > > I don't know. I guess the question is how else do you find this particular > document. > > As a workaround I would suggest that you index the *id* and that your > application > just hides/blocks searching for it. > > > HTH > > Michael > >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --00235429d19442d170049f0faf34--