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
IndexFile.java successfully:

import org.apache.lucene.analysis.myAnalyzer;

after that i modified this command in IndexFile.java

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 myanalyzer.java was compiled without any error.

Thanks in advance
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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 4 | next ›
Discussion Overview
groupjava-user @
postedJul 9, '08 at 12:45p
activeJul 9, '08 at 1:42p



site design / logo © 2022 Grokbase