I don't think this has anything to do with Lucene, the problem
seems to be that your compiler can't find the Java Stack
class.

You need to set your classpath to include wherever
java.utils is on your disk.


Erick


On Dec 27, 2007 10:56 AM, Frank Schima <[EMAIL PROTECTED]> wrote:

>
> Hello all,
>
>
> I'm trying to implement a synonym engine in Lucene 2.2 based on the code
> in
> the Lucene In Action book. However, I'm getting compile errors:
>
>
> My Synonym filter looks like this:
>
> import org.apache.lucene.analysis.TokenStream;
> import org.apache.lucene.analysis.TokenFilter;
> import org.apache.lucene.analysis.Token;
> import java.io.IOException;
> import java.util.Stack;
>
> public class SynonymFilter extends TokenFilter {
>  public static final String TOKEN_TYPE_SYNONYM = "SYNONYM";
>
>  private Stack synonymStack;
>  private SynonymEngine engine;
>
>  public SynonymFilter(TokenStream in, SynonymEngine engine) {
>    super(in);
>    synonymStack = new Stack();
>    this.engine = engine;
>  }
> ....
>
> But "Stack" is not recognized. What am I doing wrong?
>
> --
> View this message in context:
> http://www.nabble.com/Synonyms-in-Lucene-2.2-tp14514848p14514848.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to