Class SimpleFieldComparator<T>

    • Constructor Detail

      • SimpleFieldComparator

        public SimpleFieldComparator()
    • Method Detail

      • doSetNextReader

        protected abstract void doSetNextReader​(LeafReaderContext context)
                                         throws java.io.IOException
        This method is called before collecting context.
        Throws:
        java.io.IOException
      • setScorer

        public void setScorer​(Scorable scorer)
                       throws java.io.IOException
        Description copied from interface: LeafFieldComparator
        Sets the Scorer to use in case a document's score is needed.
        Specified by:
        setScorer in interface LeafFieldComparator
        Parameters:
        scorer - Scorer instance that you should use to obtain the current hit's score, if necessary.
        Throws:
        java.io.IOException