Script-expert-scoring question

(Cristiano Ferreira) #1


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

(Alexander Reelsen) #2


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


(system) #3

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