lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christophe from paris <>
Subject search with accent not match
Date Wed, 06 Aug 2008 10:36:06 GMT


I'm use FrenchAnalyzer for index 

IndexWriter writer = new IndexWriter(pathOfIndex, new FrenchAnalyzer(),
Document = new Document();

And search

IndexReader reader =;			
Searcher searcher = new IndexSearcher(reader);
Analyzer analyzer = new FrenchAnalyzer();						
QueryParser parser = new QueryParser(field, analyzer);					
Query query = parser.parse(motRecherche);
Hits hits =;

in my document i have the word "lumiere" and "lumière"

when i search lumière only document match lumière but "lumiere" is not

and if search "lumiere" the result is lumiere, lumieres ,lumiére,lumiéres
but not lumière

for a total match i must search "lumiere OR limière"
but is not the best solution 
View this message in context:
Sent from the Lucene - Java Users mailing list archive at

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

View raw message