Script-expert-scoring question

Greetings,

I have a question regarding the script-expert-scoring plugin example.
Is there a way to get the total number of hits in this part of the code:

@Override
        public ScoreScript newInstance(LeafReaderContext context)
                throws IOException {
            PostingsEnum postings = context.reader().postings( new Term(field, term));   

Thank you

Hey,

after a quick peek I could not see a way. Can you explain what you are after maybe?

Also, you might want to check out the scripted similarity

--Alex

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.