Hi Kumar, I checked the code base and I couldn't find peek method either. However, I found LookaheadTokenFilter that may be useful to you. I figured that this is a Lucene question and you can receive more answers in the Lucene user list. Ahmet
On Sunday, November 19, 2017, 10:16:21 PM GMT+3, kumar gaurav <kg2...@gmail.com> wrote: Hi friends very much thank you for your replies . yet i could not solved the problem . Emir , i need all tokens of query in incrementToken() function not only current token . Modassar , if i am not ending or closing the stream . all tokens is blank and only last token is indexed . Ahmet i could not find peek or advance method :( Please help me guys . On Fri, Nov 17, 2017 at 10:10 PM, Ahmet Arslan <iori...@yahoo.com> wrote: Hi Kumar, If I am not wrong, I think there is method named something like peek(2) or advance(2).Some filters access tokens ahead and perform some logic. Ahmet On Wednesday, November 15, 2017, 10:50:55 PM GMT+3, kumar gaurav <kg2...@gmail.com> wrote: Hi I need to get full field value from TokenStream in my custom filter class . I am using this stream.reset(); while (tStream.incrementToken()) { term += " "+charTermAttr.toString(); } stream.end(); stream.close(); this is ending streaming . no token is producing if i am using this . I want to get full string without hampering token creation . Eric ! Are you there ? :) Anyone Please help ?