lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Miller <>
Subject Re: Implement SpanScorer on 2.9 lucene lib!
Date Wed, 30 Sep 2009 21:38:42 GMT
Felipe Lobo wrote:
> Hi, i updated my lucene lib to 2.9.0 and i'm trying to instanciate the
> spanscorer but the constructor is protected.
> I looked in the javadoc of lucene and saw 2 subclasses of it
> (PayloadNearQuery.PayloadNearSpanScorer,
> PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer).
> Using this classes is the best way of implementing spanscorer??
> I was using queryscorer but after update to the new lib the highlither
> stopped hightlithing my wildcard queries, and i'm rewriting.
> Thanks,
Checkout contrib CHANGES.

The SpanScorer is now the QueryScorer - if you want to highlight
wildcard queries, you should no longer rewrite on your own.

If you want the old behavior, use TermQueryScorer instead.

- Mark

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message