Idioma

SqlServerQueryableExtensions.WithApproximate<T> Método

Definição

Habilita a pesquisa aproximada do vizinho mais próximo (ANN) para uma consulta de pesquisa de vetor. Isso faz WITH APPROXIMATE com que seja adicionado à cláusula SQLTOP, instruindo SQL Server usar o índice de vetor para melhorar o desempenho.

[System.Diagnostics.CodeAnalysis.Experimental("EF9105")]
public static System.Linq.IQueryable<T> WithApproximate<T>(this System.Linq.IQueryable<T> source);
[<System.Diagnostics.CodeAnalysis.Experimental("EF9105")>]
static member WithApproximate : System.Linq.IQueryable<'T> -> System.Linq.IQueryable<'T>
<Extension()>
Public Function WithApproximate(Of T) (source As IQueryable(Of T)) As IQueryable(Of T)

Parâmetros de tipo

T

Parâmetros

source
IQueryable<T>

Retornos

Atributos

Comentários

Esse método deve ser chamado depois Take(...) para especificar o número de resultados. Sem WithApproximate, a pesquisa de vetor executa uma pesquisa exata k-nearest neighbor (kNN) sem usar o índice de vetor.

Aplica-se a