Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 77599 invoked from network); 13 Jan 2010 13:53:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jan 2010 13:53:41 -0000 Received: (qmail 67060 invoked by uid 500); 13 Jan 2010 13:53:39 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 66983 invoked by uid 500); 13 Jan 2010 13:53:39 -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 66972 invoked by uid 99); 13 Jan 2010 13:53:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 13:53:39 +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; Wed, 13 Jan 2010 13:53:29 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.troja.net (Postfix) with ESMTP id 49C3F45F56C for ; Wed, 13 Jan 2010 14:53:08 +0100 (CET) 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 XLMwMGdanlMA for ; Wed, 13 Jan 2010 14:52:58 +0100 (CET) Received: from VEGA (unknown [134.102.249.78]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.troja.net (Postfix) with ESMTPSA id 494FE45F558 for ; Wed, 13 Jan 2010 14:52:58 +0100 (CET) From: "Uwe Schindler" To: References: <94095f521001110914qe138944he69aac0b3bb85c52@mail.gmail.com> <94095f521001130530n7690fc5l88c26170679d035b@mail.gmail.com> In-Reply-To: <94095f521001130530n7690fc5l88c26170679d035b@mail.gmail.com> Subject: RE: Field creation with TokenStream and stored value Date: Wed, 13 Jan 2010 14:52:58 +0100 Message-ID: <000001ca9457$b72fcff0$258f6fd0$@de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcqUVLPo2kA6nLBWT/WT08xZuEMtswAAuKww Content-Language: de Why not simply add the field twice, one time with TokenStream, one time = stored only? Internally stored/indexed fields are handled like that. ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: uwe@thetaphi.de > -----Original Message----- > From: Benjamin Heilbrunn [mailto:benhei@gmail.com] > Sent: Wednesday, January 13, 2010 2:31 PM > To: java-user@lucene.apache.org > Subject: Re: Field creation with TokenStream and stored value >=20 > Sorry for pushing this thing. >=20 > Would it be possible to add the demanded constructor or would it break > anything of lucenes logic? >=20 >=20 > 2010/1/11 Benjamin Heilbrunn : > > Hey out there, > > > > in lucene it's not possible to create a Field based on a TokenStream > > AND supply a stored value. > > > > Is there a reason why a Field constructor in the form of > > public Field(String name, TokenStream tokenStream, String > storedValue) > > does not exist? > > > > I am using trees of TeeSinkTokenFilter's for the creation of many > > fields, based on a source string. > > That's the reason why I can't use the "standardconstructor" > > public Field(String name, String value, Store store, Index index) > > > > > > Regards > > Benjamin > > >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org