Language

SearchSpec.DefaultEmbeddingSearchMetricType Property

Definition

Returns the default embedding metric type used for embedding search (see AppSearchSession#search) and ranking (see SearchSpec.Builder#setRankingStrategy(String)).

public Android.App.AppSearch.EmbeddingSearchMetricType DefaultEmbeddingSearchMetricType { [Android.Runtime.Register("getDefaultEmbeddingSearchMetricType", "()I", "", ApiSince=36)] get; }
[<get: Android.Runtime.Register("getDefaultEmbeddingSearchMetricType", "()I", "", ApiSince=36)>]
member this.DefaultEmbeddingSearchMetricType : Android.App.AppSearch.EmbeddingSearchMetricType

Property Value

Value is one of the following: EMBEDDING_SEARCH_METRIC_TYPE_DEFAULT EMBEDDING_SEARCH_METRIC_TYPE_COSINE EMBEDDING_SEARCH_METRIC_TYPE_DOT_PRODUCT EMBEDDING_SEARCH_METRIC_TYPE_EUCLIDEAN

Attributes

Remarks

Returns the default embedding metric type used for embedding search (see AppSearchSession#search) and ranking (see SearchSpec.Builder#setRankingStrategy(String)).

Java documentation for android.app.appsearch.SearchSpec.getDefaultEmbeddingSearchMetricType().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to