Re: Sample SynonymAnalyzer vs. Lucene 2.2

2007-10-19 Thread Daniel Naber
On Friday 19 October 2007 14:42, Sean Dague wrote: > Ends up only indexing the synonym, but not the base word itself. I cannot reproduce the problem, i.e. I see both the original term and its synonyms in the index. Maybe you can post the analyzer that uses this filter or a test case to reproduc

Sample SynonymAnalyzer vs. Lucene 2.2

2007-10-19 Thread Sean Dague
I've noticed that the sample code to do the SynonymAnalyzer from the book Lucene in Action doesn't work right on Lucene 2.2. In my sample application I am using categorizing food names into food categories using the Synonym patern. Using the excerpted: private void addAliasesToStack(Token toke