Language

SearchSpec.Builder.SetRetrieveEmbeddingMatchInfos(Boolean) Method

Definition

Sets whether to retrieve embedding match infos as a part of SearchResult.getMatchInfos().

[Android.Runtime.Register("setRetrieveEmbeddingMatchInfos", "(Z)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=36)]
public Android.App.AppSearch.SearchSpec.Builder SetRetrieveEmbeddingMatchInfos(bool retrieveEmbeddingMatchInfos);
[<Android.Runtime.Register("setRetrieveEmbeddingMatchInfos", "(Z)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=36)>]
member this.SetRetrieveEmbeddingMatchInfos : bool -> Android.App.AppSearch.SearchSpec.Builder

Parameters

retrieveEmbeddingMatchInfos
Boolean

Returns

Attributes

Remarks

Sets whether to retrieve embedding match infos as a part of SearchResult.getMatchInfos(). Note that this does not modify the snippet count fields, and any retrieved embedding match infos also count toward the limit set in SearchSpec.getSnippetCount() and SearchSpec.getSnippetCountPerProperty().

Android reference for android.app.appsearch.SearchSpec.Builder.setRetrieveEmbeddingMatchInfos.

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