Table of Contents

Enum VectorIndexingMethod

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Indexing algorithm used for a vector field. See How to Index Fields for Vector Search for more information.

public enum VectorIndexingMethod

Fields

Hnsw = 0

Hierarchical Navigable Small Worlds graph-based indexing. If omitted, this is the default value.

Flat = 1

Full-scan indexing. More efficient than HNSW for indexes containing many small tenants (approximately 1–10k vectors each) where searches are highly selective.