Condividi tramite


AppSearchSession.Search(String, SearchSpec) Method

Definition

Retrieves documents from the open AppSearchSession that match a given query string and type of search provided.

[Android.Runtime.Register("search", "(Ljava/lang/String;Landroid/app/appsearch/SearchSpec;)Landroid/app/appsearch/SearchResults;", "", ApiSince=31)]
public Android.App.AppSearch.SearchResults Search (string queryExpression, Android.App.AppSearch.SearchSpec searchSpec);
[<Android.Runtime.Register("search", "(Ljava/lang/String;Landroid/app/appsearch/SearchSpec;)Landroid/app/appsearch/SearchResults;", "", ApiSince=31)>]
member this.Search : string * Android.App.AppSearch.SearchSpec -> Android.App.AppSearch.SearchResults

Parameters

queryExpression
String

query string to search.

searchSpec
SearchSpec

spec for setting document filters, adding projection, setting term match type, etc.

Returns

a SearchResults object for retrieved matched documents.

Attributes

Remarks

Java documentation for android.app.appsearch.AppSearchSession.search(java.lang.String, android.app.appsearch.SearchSpec).

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