# Package org.apache.lucene.search.knn

package org.apache.lucene.search.knn
Classes related to vector search: knn and vector fields.

- Related Packages
  Package
  Description
  org.apache.lucene.search
  Code to search indices.
  org.apache.lucene.search.comparators
  Comparators, used to compare hits so as to determine their sort order when collecting the top results with `TopFieldCollector`.
  org.apache.lucene.search.similarities
  This package contains the various ranking models that can be used in Lucene.
- Class
  Description
  KnnCollectorManager
  KnnCollectorManager responsible for creating `KnnCollector` instances.
  KnnSearchStrategy
  KnnSearchStrategy is a strategy for kNN search, providing additional search strategy configuration
  KnnSearchStrategy.Hnsw
  A strategy for kNN search that uses HNSW
  KnnSearchStrategy.Patience
  A strategy for kNN search on HNSW that early exits when nearest neighbor collection rate saturates.
  KnnSearchStrategy.Seeded
  A strategy for kNN search that uses a set of entry points to start the search
  MultiLeafKnnCollector
  MultiLeafKnnCollector is a specific KnnCollector that can exchange the top collected results across segments through a shared global queue.
  TopKnnCollectorManager
  TopKnnCollectorManager responsible for creating `TopKnnCollector` instances.