Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 19905 invoked from network); 31 Aug 2010 01:22:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 Aug 2010 01:22:49 -0000 Received: (qmail 25793 invoked by uid 500); 31 Aug 2010 01:22:47 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 25660 invoked by uid 500); 31 Aug 2010 01:22:46 -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 25652 invoked by uid 99); 31 Aug 2010 01:22:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Aug 2010 01:22:46 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of erickerickson@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, 31 Aug 2010 01:22:40 +0000 Received: by qyk2 with SMTP id 2so6948639qyk.14 for ; Mon, 30 Aug 2010 18:22:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=HZggtl+8ZzQGKYYQxXXakZDsZhT6mbjrJ66iJHjeLXw=; b=HPDIqHGzR+6t/5nW+uLT8Ms96BLMwkjIAQAD2dJkdIUkgLC4teiz3399oeqo3wQI+S wmCTJLhH4YnNCAStoh7ju+9Wc0LSdWCaAfw1rpWnZc1MScp7LDDu4DRLk1LD672pkWem cd3GDpYyylnzrQ1tO0qprdOfh44ZtOKljVO0s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=S+VCTkIdmX50KYdzj43/tcjvuQATuSXbc7e0rFsE1IonQRnEDqxEl/nBewdGbc9jId WKKeQ/XnPoIlW4x+CrnxJB+Ky51chcq8o8sZG6zvmrDhAlshEPjCLkGNvnBEhWPhiDiN O0BjEdOCj27SqOx87ZcmRw5YRDBilzUPH/6lQ= MIME-Version: 1.0 Received: by 10.224.54.143 with SMTP id q15mr3395663qag.395.1283217739050; Mon, 30 Aug 2010 18:22:19 -0700 (PDT) Received: by 10.229.186.83 with HTTP; Mon, 30 Aug 2010 18:22:18 -0700 (PDT) In-Reply-To: References: <359a92831003251327j110470d7r5380db0910910747@mail.gmail.com> <001d01cb47bb$8231cf70$86956e50$@thetaphi.de> Date: Mon, 30 Aug 2010 21:22:18 -0400 Message-ID: Subject: Re: Fields with Field.Store.NO and Field.Index.ANALYZED not being indexed From: Erick Erickson To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=0015175d6726816f82048f14694c X-Virus-Checked: Checked by ClamAV on apache.org --0015175d6726816f82048f14694c Content-Type: text/plain; charset=ISO-8859-1 "if you do not have access to the original contents" is the key if Uwe's comment. You do not need a separate field at all, it all depends upon your situation. There's no problem in indexing AND storing f field. HTH Erick On Sun, Aug 29, 2010 at 11:33 PM, Constantine Vetoshev wrote: > "Uwe Schindler" writes: > > You cannot retrieve non-stored fields. They are analyzed and tokenized > > during indexing and this is a one-way transformation. If you update > > documents you have to reindex the contents. If you do not have access to > the > > original contents anymore, you may consider adding a stored-only "raw > > document" field, that contains everything to rebuild the indexed fields. > In > > our installation, we have a stored field containing the JSON/XML source > > document to do this. > > Thanks, that helps. > > Since it seems that I have to keep the raw data around, is there any > reason not to just make that data's field both stored and analyzed? I'm > just wondering why you use a separate stored-only field: a Lucene > limitation or some app-specific reason? > > -- > Regards, > Constantine Vetoshev > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --0015175d6726816f82048f14694c--