>
> That is awesome, just one thing, and forgive me if i sound
> ignorant. What is
> "FastZemberek zemberek"?
Oh, it's just a copy-paste accident, delete it :)
-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.o
That is awesome, just one thing, and forgive me if i sound ignorant. What is
"FastZemberek zemberek"?
Ahmet Arslan wrote:
>
>
>> public class CustomFilter extends TokenFilter
>> {
>> protected CustomFilter(TokenStream
>> tokenStream)
>> {
>> super(tokenStream);
>> }
>>
Hi,
> Here is the the one that uses new token stream api:
>
> public final class CustomFilter extends TokenFilter {
>
>private final TermAttribute termAtt;
>
> public CustomFilter(TokenStream in, FastZemberek zemberek) {
> super(in);
> termAtt = (TermAttribute) addAttrib
> public class CustomFilter extends TokenFilter
> {
> protected CustomFilter(TokenStream
> tokenStream)
> {
> super(tokenStream);
> }
> @Override
> public Token next(final Token reusableToken)
> throws IOException
> {
> Token nextToken =
> input.next(reusabl
The source code for LowerCaseFilter or StopFilter can be a good starting point.
DIGY
-Original Message-
From: maxSchlein [mailto:m_schl...@hotmail.com]
Sent: Thursday, December 24, 2009 7:10 PM
To: java-user@lucene.apache.org
Subject: help customfilter with incrementToken() and AttributeS
In the current version of lucene, 3.0 the following methods are no longer
available.
- TokenStream.next()
- TokenStream.next(Token).
- Token.setTermText()
- Token.termText().
The newer versions says to use, incrementToken() and AttributeSource APIs.
But I cannot find much hel
Here is the solution. I used a CustomAnalyzer that calls CustomFilter.
Easy enough, but now if I want to use the current version of lucene, 3.0
these methods are no longer there. TokenStream.next() or
TokenStream.next(Token). In 2.9.0 these methods were deprecated as are
Token.setTermText()
Thanks Jake Mannix and N Hira. I'm planning to releasing my code as Apache
licensed.
I have read http://www.apache.org/licenses/LICENSE-2.0 and replace my own
identifying information with the boilerplate notice.
Aren't you guys on a holiday? (You guys are really hard-working), in China,
we don't