Class PayloadScoreQuery.PayloadSpans

    • Field Detail

      • payloadsSeen

        public int payloadsSeen
      • payloadScore

        public float payloadScore
    • Method Detail

      • accept

        protected FilterSpans.AcceptStatus accept​(Spans candidate)
                                           throws java.io.IOException
        Description copied from class: FilterSpans
        Returns YES if the candidate should be an accepted match, NO if it should not, and NO_MORE_IN_CURRENT_DOC if iteration should move on to the next document.
        Specified by:
        accept in class FilterSpans
        Throws:
        java.io.IOException
      • doStartCurrentDoc

        protected void doStartCurrentDoc()
        Description copied from class: Spans
        Called before the current doc's frequency is calculated
        Overrides:
        doStartCurrentDoc in class Spans
      • collectLeaf

        public void collectLeaf​(PostingsEnum postings,
                                int position,
                                Term term)
                         throws java.io.IOException
        Description copied from interface: SpanCollector
        Collect information from postings
        Specified by:
        collectLeaf in interface SpanCollector
        Parameters:
        postings - a PostingsEnum
        position - the position of the PostingsEnum
        term - the Term for this postings list
        Throws:
        java.io.IOException - on error
      • reset

        public void reset()
        Description copied from interface: SpanCollector
        Call to indicate that the driving Spans has moved to a new position
        Specified by:
        reset in interface SpanCollector
      • doCurrentSpans

        protected void doCurrentSpans()
                               throws java.io.IOException
        Description copied from class: Spans
        Called each time the scorer's SpanScorer is advanced during frequency calculation
        Overrides:
        doCurrentSpans in class Spans
        Throws:
        java.io.IOException