Interface RandomVectorScorer

    • Method Detail

      • score

        float score​(int node)
             throws IOException
        Returns the score between the query and the provided node.
        Parameters:
        node - a random node in the graph
        Returns:
        the computed score
        Throws:
        IOException
      • maxOrd

        int maxOrd()
        Returns:
        the maximum possible ordinal for this scorer
      • ordToDoc

        default int ordToDoc​(int ord)
        Translates vector ordinal to the correct document ID. By default, this is an identity function.
        Parameters:
        ord - the vector ordinal
        Returns:
        the document Id for that vector ordinal
      • getAcceptOrds

        default Bits getAcceptOrds​(Bits acceptDocs)
        Returns the Bits representing live documents. By default, this is an identity function.
        Parameters:
        acceptDocs - the accept docs
        Returns:
        the accept docs