Re: read more tokens during analysis

2010-02-12 Thread Rohit Banga
thanks will try the code and get back if i have any problems. Rohit Banga On Fri, Feb 12, 2010 at 10:38 PM, Ahmet Arslan wrote: > > > i want to consider the current word > > & the next as a single term. > > > > when analyzing "Arun Kumar" > > > > i want my analyzer to consider "Arun", "Arun

Re: read more tokens during analysis

2010-02-12 Thread Ahmet Arslan
> i want to consider the current word > & the next as a single term. > > when analyzing "Arun Kumar" > > i want my analyzer to consider "Arun",  "Arun Kumar" > as synonyms. > > in the tokenstream method, how do we read the next token > "Kumar" > i am going through the setPositionIncrements meth

Re: read more tokens during analysis

2010-02-10 Thread Grant Ingersoll
On Feb 10, 2010, at 8:33 AM, Rohit Banga wrote: > basically i want to use my own filter wrapping around a standard analyzer. > > the kind explained on page 166 of Lucene in Action, uses input.next() which > is perhaps not available in lucene 3.0 > > what is the substitute method. captureState(

Re: read more tokens during analysis

2010-02-10 Thread Rohit Banga
basically i want to use my own filter wrapping around a standard analyzer. the kind explained on page 166 of Lucene in Action, uses input.next() which is perhaps not available in lucene 3.0 what is the substitute method. Rohit Banga On Wed, Feb 10, 2010 at 6:46 PM, Rohit Banga wrote: > i want