Class ShapeQuery.RelationScorerSupplier

  • Enclosing class:
    ShapeQuery

    private abstract static class ShapeQuery.RelationScorerSupplier
    extends ScorerSupplier
    utility class for implementing constant score logic specific to INTERSECT, WITHIN, and DISJOINT
    • Method Detail

      • getScorer

        protected Scorer getScorer​(LeafReader reader,
                                   Weight weight,
                                   float boost,
                                   ScoreMode scoreMode)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • getSparseScorer

        private Scorer getSparseScorer​(LeafReader reader,
                                       Weight weight,
                                       float boost,
                                       ScoreMode scoreMode)
                                throws java.io.IOException
        Scorer used for INTERSECTS
        Throws:
        java.io.IOException
      • getDenseScorer

        private Scorer getDenseScorer​(LeafReader reader,
                                      Weight weight,
                                      float boost,
                                      ScoreMode scoreMode)
                               throws java.io.IOException
        Scorer used for WITHIN and DISJOINT
        Throws:
        java.io.IOException
      • getContainsDenseScorer

        private Scorer getContainsDenseScorer​(LeafReader reader,
                                              Weight weight,
                                              float boost,
                                              ScoreMode scoreMode)
                                       throws java.io.IOException
        Throws:
        java.io.IOException