On Fri, 5 May 2017, Peter Brown wrote:

The 'score' method you're trying to get wrapped is marked 'protected' in
the source code you showed above.

By default, JCC only wraps public methods and fields.

You can either make it public or force a wrapper for it by explicitely
listing it on the JCC command line.

At line 326 in the pylucene Makefile you can see two such non public things
being force-wrapped already via listing:
            org.apache.lucene.index.IndexWriter:getReader \
            org.apache.lucene.analysis.Tokenizer:input \
Just add your score method to the list there...