lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Damerian <>
Subject Access next token in a stream
Date Thu, 09 Feb 2012 19:18:43 GMT
Hello i want to implement my custom filter, my wuestion is quite simple 
but i cannot find a solution to it no matter how i try:

How can i access the TermAttribute of the  next token than the one i 
currently have in my stream?

For example in  the phrase "My name is James Bond" if let's say i am in 
the token [My], i would like to be able to check the TermAttribute of 
the following token [name] and fix my position increment accordingly.

Thank you in advance!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message