You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Marc Schwarz <in...@qboad.de> on 2010/01/28 16:06:48 UTC
Highlighter / cannot be instantiated
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 highliter/2.9 of lucene
Any ideas ? Thanks :-)
Greetings,
Marc
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
AW: Highlighter / cannot be instantiated
Posted by Marc Schwarz <in...@qboad.de>.
Yep that was it :-)
Thanks !
-----Ursprüngliche Nachricht-----
Von: Illés Solt [mailto:illes.solt@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 namespace
org.apache.lucene.search.highlight.Highlighter
and not something else like javax.swing.text.Highlighter?
Illes
2010/1/28 Marc Schwarz <in...@qboad.de>:
> 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 highliter/2.9 of lucene
>
> Any ideas ? Thanks :-)
>
> Greetings,
> Marc
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Highlighter / cannot be instantiated
Posted by Illés Solt <il...@gmail.com>.
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 <in...@qboad.de>:
> 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 highliter/2.9 of lucene
>
> Any ideas ? Thanks :-)
>
> Greetings,
> Marc
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org