I'm trying to get the highlighter running, but didn't get it work.
Everywhere it's posted as following:
Highlighter highlighter = new Highlighter(new SimpleHTMLFormatter(),
new QueryScorer(query));
but that gives me a
"Highlighter is abstract; cannot be instantiated".
I'm using version 2.9 of
Are you sure you imported Highlighter from the correct lucene namespace
org.apache.lucene.search.highlight.Highlighter
and not something else like javax.swing.text.Highlighter?
Illes
2010/1/28 Marc Schwarz :
> I'm trying to get the highlighter running, but didn't get it work.
>
> Everywhere i
Yep that was it :-)
Thanks !
-Ursprüngliche Nachricht-
Von: Illés Solt [mailto:illes.s...@gmail.com]
Gesendet: Freitag, 29. Januar 2010 15:42
An: java-user@lucene.apache.org
Betreff: Re: Highlighter / cannot be instantiated
Are you sure you imported Highlighter from the correct lucene