Language

SearchSuggestionSpec.Builder.AddFilterDocumentIds Method

Definition

Overloads

Name Description
AddFilterDocumentIds(String, ICollection<String>)

Adds a document ID filter to the suggestion specification.

AddFilterDocumentIds(String, String[])

Adds a document ID filter to the suggestion specification.

AddFilterDocumentIds(String, ICollection<String>)

Adds a document ID filter to the suggestion specification.

[Android.Runtime.Register("addFilterDocumentIds", "(Ljava/lang/String;Ljava/util/Collection;)Landroid/app/appsearch/SearchSuggestionSpec$Builder;", "", ApiSince=34)]
public Android.App.AppSearch.SearchSuggestionSpec.Builder AddFilterDocumentIds(string namespace, System.Collections.Generic.ICollection<string> documentIds);
[<Android.Runtime.Register("addFilterDocumentIds", "(Ljava/lang/String;Ljava/util/Collection;)Landroid/app/appsearch/SearchSuggestionSpec$Builder;", "", ApiSince=34)>]
member this.AddFilterDocumentIds : string * System.Collections.Generic.ICollection<string> -> Android.App.AppSearch.SearchSuggestionSpec.Builder

Parameters

namespace
String

The namespace to associate with this document-ID filter.

documentIds
ICollection<String>

The document IDs to store as the filter for the specified namespace.

Returns

This builder instance.

Attributes

Remarks

Adds a document ID filter to the suggestion specification. Only search for suggestions in the specified documents. If unset, the query will search over all documents. A later call for the same namespace replaces its previous document IDs.

Android reference for android.app.appsearch.SearchSuggestionSpec.Builder.addFilterDocumentIds.

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

AddFilterDocumentIds(String, String[])

Adds a document ID filter to the suggestion specification.

[Android.Runtime.Register("addFilterDocumentIds", "(Ljava/lang/String;[Ljava/lang/String;)Landroid/app/appsearch/SearchSuggestionSpec$Builder;", "", ApiSince=34)]
public Android.App.AppSearch.SearchSuggestionSpec.Builder AddFilterDocumentIds(string namespace, params string[] documentIds);
[<Android.Runtime.Register("addFilterDocumentIds", "(Ljava/lang/String;[Ljava/lang/String;)Landroid/app/appsearch/SearchSuggestionSpec$Builder;", "", ApiSince=34)>]
member this.AddFilterDocumentIds : string * string[] -> Android.App.AppSearch.SearchSuggestionSpec.Builder

Parameters

namespace
String

The namespace to associate with this document-ID filter.

documentIds
String[]

The document IDs to store as the filter for the specified namespace.

Returns

This builder instance.

Attributes

Remarks

Adds a document ID filter to the suggestion specification. Only search for suggestions in the specified documents. If unset, the query will search over all documents. A later call for the same namespace replaces its previous document IDs.

Android reference for android.app.appsearch.SearchSuggestionSpec.Builder.addFilterDocumentIds.

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