Erik, I got the LuceneInAction.zip, extracted the highlighter-dev.jar and added it to the my classpath. I tried to Test the jar with this code from the LIA...
String string = "The quick brown fox jumps over the lazy dog"; TermQuery termQuery = new TermQuery(new Term("field", "fox")); QueryScorer scorer = new QueryScorer(termQuery); Highlighter highlighter = new Highlighter(scorer); TokenStream tStream = new StandardAnalyzer().tokenStream("field", new StringReader(string)); String s = highlighter.getBestFragment(tStream, string); System.out.println(s); and I get this error... Exception in thread "main" java.lang.NoSuchMethodError: org.apache.lucene.search.highlight.TextFragment.<init>(II)V at org.apache.lucene.search.highlight.Highlighter.getBestDocFragments(Highlighter.java:138) at org.apache.lucene.search.highlight.Highlighter.getBestFragments(Highlighter.java:101) at org.apache.lucene.search.highlight.Highlighter.getBestFragment(Highlighter.java:73) Am I using the correct jar? After looking into the src files, I want to say that the TextFragment constructor (from the jar file) take only 2 params, but the Highlighter or TokenSources is trying to pass it 3 params, but I am not sure of any of this? Can you make sense of this? Thanks again, Jeff --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]