Class ESAcceptDocs.ScorerSupplierAcceptDocs

java.lang.Object
org.apache.lucene.search.AcceptDocs
org.elasticsearch.search.vectors.ESAcceptDocs
org.elasticsearch.search.vectors.ESAcceptDocs.ScorerSupplierAcceptDocs
Enclosing class:
ESAcceptDocs

public static final class ESAcceptDocs.ScorerSupplierAcceptDocs extends ESAcceptDocs
An AcceptDocs that wraps a ScorerSupplier. Indicates that a filter was provided.
  • Method Details

    • bits

      public org.apache.lucene.util.Bits bits() throws IOException
      Specified by:
      bits in class org.apache.lucene.search.AcceptDocs
      Throws:
      IOException
    • iterator

      public org.apache.lucene.search.DocIdSetIterator iterator() throws IOException
      Specified by:
      iterator in class org.apache.lucene.search.AcceptDocs
      Throws:
      IOException
    • cost

      public int cost() throws IOException
      Specified by:
      cost in class org.apache.lucene.search.AcceptDocs
      Throws:
      IOException
    • approximateCost

      public int approximateCost() throws IOException
      Description copied from class: ESAcceptDocs
      Returns an approximate cost of the accepted documents. This is generally much cheaper than AcceptDocs.cost(), as implementations may not fully evaluate filters to provide this estimate and may ignore deletions
      Specified by:
      approximateCost in class ESAcceptDocs
      Returns:
      the approximate cost
      Throws:
      IOException - if an I/O error occurs