Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 28345 invoked from network); 16 Jun 2009 10:19:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jun 2009 10:19:07 -0000 Received: (qmail 29396 invoked by uid 500); 16 Jun 2009 10:19:17 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 29334 invoked by uid 500); 16 Jun 2009 10:19:17 -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 29326 invoked by uid 99); 16 Jun 2009 10:19:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 10:19:17 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [85.25.71.29] (HELO mail.troja.net) (85.25.71.29) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 10:19:07 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.troja.net (Postfix) with ESMTP id 51FCC45E94A for ; Tue, 16 Jun 2009 12:18:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.troja.net Received: from mail.troja.net ([127.0.0.1]) by localhost (megaira.troja.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BsexLSwgH87d for ; Tue, 16 Jun 2009 12:18:35 +0200 (CEST) Received: from VEGA (unknown [134.102.249.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.troja.net (Postfix) with ESMTPSA id D26E345E945 for ; Tue, 16 Jun 2009 12:18:34 +0200 (CEST) From: "Uwe Schindler" To: References: <9ac0c6aa0906160312r3f457270j55aab76a169b8ca4@mail.gmail.com> Subject: RE: Field.tokenStreamValue Date: Tue, 16 Jun 2009 12:18:32 +0200 Message-ID: <2A67629A493A4B82B2C8BF058DBB4236@VEGA> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <9ac0c6aa0906160312r3f457270j55aab76a169b8ca4@mail.gmail.com> Thread-Index: AcnuaxusFYSO8p7MR4WXmfeMufrkvAAAEo5A X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Virus-Checked: Checked by ClamAV on apache.org Yes, I exactly need this for NumericField! The numeric value gets = indexed using the tokenStream, but an optional stored field value (e.g. the = number as plain text or even prefixEncoded) would also be good. Currently the = user must index both types separate (but can use the same field name). As far = as I see, this is not a problem with the current indexer. The indexer first tries tokenStreamValue() during indexing, but when saving the stored = fields, always stringValue()/getBinaryValue() is used. ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: uwe@thetaphi.de > -----Original Message----- > From: Michael McCandless [mailto:lucene@mikemccandless.com] > Sent: Tuesday, June 16, 2009 12:13 PM > To: java-dev@lucene.apache.org; yonik@lucidimagination.com > Subject: Re: Field.tokenStreamValue >=20 > Seems reasonable? >=20 > 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? >=20 > Mike >=20 > On Mon, Jun 15, 2009 at 9:48 PM, Yonik = Seeley > wrote: > > 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 = Reader > value, > > =A0 * binary value, or TokenStream value is used. =A0Exactly one of > stringValue(), > > =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 > > > > >=20 > --------------------------------------------------------------------- > 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