Class KnnSearchStrategy.Seeded

java.lang.Object
org.apache.lucene.search.knn.KnnSearchStrategy
org.apache.lucene.search.knn.KnnSearchStrategy.Seeded
Enclosing class:
KnnSearchStrategy

public static class KnnSearchStrategy.Seeded extends KnnSearchStrategy
A strategy for kNN search that uses a set of entry points to start the search
WARNING: This API is experimental and might change in incompatible ways in the next release.
  • Constructor Details

  • Method Details

    • entryPoints

      public DocIdSetIterator entryPoints()
      Iterator of valid entry points for the kNN search
      Returns:
      DocIdSetIterator of entry points
    • numberOfEntryPoints

      public int numberOfEntryPoints()
      Number of valid entry points for the kNN search
      Returns:
      number of entry points
    • originalStrategy

      public KnnSearchStrategy originalStrategy()
      Original strategy to use after seeding
      Returns:
      original strategy
    • equals

      public boolean equals(Object o)
      Description copied from class: KnnSearchStrategy
      Override and implement search strategy instance equivalence properly in a subclass.
      Specified by:
      equals in class KnnSearchStrategy
    • hashCode

      public int hashCode()
      Description copied from class: KnnSearchStrategy
      Override and implement search strategy hash code properly in a subclass.
      Specified by:
      hashCode in class KnnSearchStrategy
      See Also:
    • nextVectorsBlock

      public void nextVectorsBlock()
      Description copied from class: KnnSearchStrategy
      Signal processing of the next block of vectors.
      Specified by:
      nextVectorsBlock in class KnnSearchStrategy