lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From masz-wow <>
Subject Re: Problem Search using lucene
Date Wed, 01 Aug 2007 06:43:24 GMT

Thanks Joe

I'm using this function as my analyzer

public static Analyzer getDefaultAnalyzer() {
	PerFieldAnalyzerWrapper perFieldAnalyzer = new PerFieldAnalyzerWrapper(new
		perFieldAnalyzer.addAnalyzer("contents", new StopAnalyzer());
		perFieldAnalyzer.addAnalyzer("fileID", new WhitespaceAnalyzer());
		perFieldAnalyzer.addAnalyzer("path", new KeywordAnalyzer());
		return perFieldAnalyzer;

StopAnalyzer builds an analyzer which removes words in
ENGLISH_STOP_WORDS.That might be the cause why I cannot search words such as
'and' 'to'


I'm still having problem when I search a few words other than english words
such as name (eg: Ghazat) or string of numbers (eg:45600).
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