Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 23985 invoked from network); 16 Jun 2009 10:13:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jun 2009 10:13:12 -0000 Received: (qmail 22485 invoked by uid 500); 16 Jun 2009 10:13:23 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 22402 invoked by uid 500); 16 Jun 2009 10:13:23 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 22394 invoked by uid 99); 16 Jun 2009 10:13:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 10:13:23 +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: local policy) Received: from [209.85.217.215] (HELO mail-gx0-f215.google.com) (209.85.217.215) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 10:13:12 +0000 Received: by gxk11 with SMTP id 11so6836877gxk.5 for ; Tue, 16 Jun 2009 03:12:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.124.13 with SMTP id b13mr15309818ybn.221.1245147171376; Tue, 16 Jun 2009 03:12:51 -0700 (PDT) In-Reply-To: References: Date: Tue, 16 Jun 2009 06:12:51 -0400 Message-ID: <9ac0c6aa0906160312r3f457270j55aab76a169b8ca4@mail.gmail.com> Subject: Re: Field.tokenStreamValue From: Michael McCandless To: java-dev@lucene.apache.org, yonik@lucidimagination.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Seems reasonable? So you're saying that if a Field has both TokenStream and some other value, the TokenStream gets indexed into postings & term vectors, but the other value gets stored? Mike On Mon, Jun 15, 2009 at 9:48 PM, Yonik Seeley w= rote: > The JavaDoc suggests that one can't have a tokenStreamValue and a > StringValue or binaryValue at the same time... any good reason for > this restriction? > > =A0/** The value of the field as a String, or null. =A0If null, the Reade= r value, > =A0 * binary value, or TokenStream value is used. =A0Exactly one of strin= gValue(), > =A0 * readerValue(), getBinaryValue(), and tokenStreamValue() must be set= . */ > > The indexing code looks like it should actually work - but the Field > restricts one setting a tokenStreamValue and having a stored field at > the same time. > Should we fix this? > > -Yonik > http://www.lucidimagination.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-dev-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org