Hi, You should review the new API of Lucene 3.0, SpanScorer was replaced by something else. The CHANGES.txt of the contrib package may give you some hints. Its long time ago that we changed this api (Lucene 3.0 is also "ancient"). Contrib-Highlighter may break backwards compatibility even with minor versions, as it's not covered by the strict backwards compatibility of the Lucene Core. So best is to review the javadocs of 2.4, 2.9 and 3.0, too.
> I checked the class path and there were no old version of lucene only: > lucene-highlighter-3.0.3.jar and lucene-core-3.0.3.jar You also need contrib-memory-3.0.3.jar to actually run your program (not for compiling). Uwe ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -----Original Message----- > From: starz10de [mailto:farag_ah...@yahoo.com] > Sent: Sunday, November 20, 2011 12:05 PM > To: java-user@lucene.apache.org > Subject: RE: lucene highlighter > > Hi Uwe, > > Thanks for your answer. I am using now lucene-highlighter-3.0.3 but the > problem I have this error: > > “SpanScorer can’t be resolved as a type” > > > SpanScorer scorer = new SpanScorer(query, fieldName, new > > CachingTokenFilter(stream)); > > I checked the class path and there were no old version of lucene only: > lucene-highlighter-3.0.3.jar and lucene-core-3.0.3.jar > > any hints? > > Thanks > > Farag > > > > -- > View this message in context: http://lucene.472066.n3.nabble.com/lucene- > highlighter-tp3522464p3522535.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org