lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rohit Banga <iamrohitba...@gmail.com>
Subject Re: read more tokens during analysis
Date Wed, 10 Feb 2010 13:33:26 GMT
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 <iamrohitbanga@gmail.com>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 Kumar" as synonyms.
>
> in the tokenstream method, how do we read the next token "Kumar"
> i am going through the setPositionIncrements method for considering them as
> synonyms, but i don't understand how to implement look ahead in the
> analyzer.
>
>
>
> Rohit Banga
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message