RE: Retrieving TokenStream from Tokenized Non-Stored Field

2009-04-03 Thread David Seltzer
Ah, ok. Well that explains the behavior then. Thanks! -Original Message- From: Michael McCandless [mailto:luc...@mikemccandless.com] Sent: Thursday, April 02, 2009 4:14 PM To: java-user@lucene.apache.org Subject: Re: Retrieving TokenStream from Tokenized Non-Stored Field Actually you

Retrieving TokenStream from Tokenized Non-Stored Field

2009-04-02 Thread David Seltzer
Hi All, I have a document with a field called TextTranscript. Its created using the following command: myDoc.add(new Field(TextTranscript, sTranscriptBody, Field.Store.NO, Field.Index.TOKENIZED)); I'm then trying to retrieve the TokenStream by pulling the field. Field fTextTranscript =

Re: Retrieving TokenStream from Tokenized Non-Stored Field

2009-04-02 Thread Michael McCandless
Actually you have to mark the field as Field.Store.YES in order to see that field when you retrieve the doc at search time. You'll then be able to retrieve the string value. Mike On Thu, Apr 2, 2009 at 10:45 AM, David Seltzer dselt...@tveyes.com wrote: Hi All, I have a document with a field