Script-expert-scoring question


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:

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

Thank you


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


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