lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcelo Schneider <>
Subject Re: My own nalyzer in lucene
Date Wed, 09 Jul 2008 13:00:40 GMT
starz10de escreveu:
> Hi All,
> I am new in lucene!
>  I am trying to do my own nalyzer (myAnalyzer) in lucene. I worte it and I
> compile it, then i add myAnlayzer.class to the folder 
>   \org\apache\lucene\analysis  and then i create new jar files which
> contains myAnalyzer and the other files, then  i imported  myanalyzer in
> successfully:
>  import org.apache.lucene.analysis.myAnalyzer;
> after that i modified this command in
>   IndexWriter writer = new IndexWriter("index", myAnalyzer(), true);
> Unfortunately there is some error here which I couldn't recognize, I feel I
> didn't missed any step, also was compiled without any error.
> Thanks in advance
> Farag

What/where is the error? The steps you followed seem correct. Can you 
share some of your analyzer code?

Just some notes: Java convention says you should start class names with 
uppercase (MyAnalyzer); plus, where are you are instantiating your 
analyzer (new IndexWriter("index", new myAnalyzer(), true);)?


*Marcelo Frantz Schneider*
/SIC - TCO - Tecnologia em Engenharia do Conhecimento/

Esta mensagem foi verificada pelo sistema de antivírus da Dígitro e
acredita-se estar livre de perigo.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message