Re: Lucene Analyzer that can handle C++ vs C#

2009-12-24 Thread AHMET ARSLAN
> > 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

Re: Lucene Analyzer that can handle C++ vs C#

2009-12-24 Thread maxSchlein
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); >>     } >>    

RE: Lucene Analyzer that can handle C++ vs C#

2009-12-24 Thread Uwe Schindler
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

Re: Lucene Analyzer that can handle C++ vs C#

2009-12-24 Thread AHMET ARSLAN
> 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

RE: help customfilter with incrementToken() and AttributeSource APIs

2009-12-24 Thread Digy
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

help customfilter with incrementToken() and AttributeSource APIs

2009-12-24 Thread maxSchlein
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

Re: Lucene Analyzer that can handle C++ vs C#

2009-12-24 Thread maxSchlein
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()

Re: How to get a apache public license

2009-12-24 Thread Weiwei Wang
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