I
InsightNexus

Class HnswAlgorithmConfiguration | Azure SDK for .NET

Author

James Stevens

Published Feb 16, 2026

Contains configuration options specific to the HNSW approximate nearest neighbors algorithm used during indexing and querying. The HNSW algorithm offers a tunable trade-off between search speed and accuracy.

Inheritance

System.Object

HnswAlgorithmConfiguration

Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.Search.Documents.dll
Syntax
public class HnswAlgorithmConfiguration : Azure.Search.Documents.Indexes.Models.VectorSearchAlgorithmConfiguration

Constructors

HnswAlgorithmConfiguration(String)

Initializes a new instance of HnswAlgorithmConfiguration.

Declaration
public HnswAlgorithmConfiguration (string name);
Parameters
System.String name

The name to associate with this particular configuration.

Exceptions
System.ArgumentNullException

name is null.

Properties

Parameters

Contains the parameters specific to HNSW algorithm.

Declaration
public Azure.Search.Documents.Indexes.Models.HnswParameters Parameters { get; set; }
Property Value