Hi,

Those are internal classes and not to be extended (not only the constructor is 
pkg-private, the whole class is: https://goo.gl/5WyLYz)! Scorers follow the 
delegator pattern. If you want to modify the behaviour of a Scorer, create a 
delegator scorer (e.g. some Filtering Scorer) and change its behaviour (e.g. 
filter additional documents,...). This can be done by a query that filters 
other querys. E.g. look at ConstantScoreQuery or similar queries that wrap 
other scorers.

Subclassing ConjunctionScorer would bring you nothing because internals are 
still private - and that's good.

Uwe

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de


> -----Original Message-----
> From: Sheng [mailto:sheng...@gmail.com]
> Sent: Wednesday, October 21, 2015 7:03 PM
> To: java-user@lucene.apache.org
> Subject: ConjunctionScorer access
> 
> It's a bummer Lucene makes the constructor of ConjunctionScorer non-
> public. I wanted to extend from this class in order to tweak its behavior for
> my use case. Is it possible to change it to protected in future releases ?


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to