Re: Deprecation of Token constructors in 2.4

2008-12-01 Thread Michael McCandless
This was done under LUCENE-1333, in moving Token to the "reuse" API. The general idea is to deprecate the String based APIs (whose performance got worse because of the switch to char[]), in favor of the char[] APIs. That said, I do agree it's still useful to have String based variants, at the ex

Deprecation of Token constructors in 2.4

2008-11-26 Thread Shai Erera
Hi I moved to use Lucene 2.4 and noticed that some of the Token constructors were marked deprecated. Specifically, I'm talking about the Token(String, int, int), where the String is the word to populate the token with, and the two ints are startOffset and endOffset respectively. That was an amazin