lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From luc...@nitwit.de
Subject stop words in index
Date Sat, 19 Jun 2004 11:25:13 GMT
Hi!

How comes that stop words show up in index (HighFreqTerms)? Yes, I do you the 
same analyzer for indexing and searching.

class SearchFacade
{
	private final static String[] GERMAN_STOP_WORDS = new String[] { "foo", 
"bar" };
	private final static Analyzer GERMAN_ANALYZER = new 
SnowballAnalyzer( "German2", GERMAN_STOP_WORDS );

	public void index()
	{
		writer = new IndexWriter( Configuration.Lucene.INDEX, GERMAN_ANALYZER, 
true );
		...
	}

	public void search(String q)
	{
		final Query q = MultiFieldQueryParser.parse( query, new String[] { "blah", 
"foo", "bar" }, GERMAN_ANALYZER );
		...
	}
}

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message