SearchSpec.Builder.SetVerbatimSearchEnabled(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the VERBATIM_SEARCH feature as enabled/disabled according to the enabled parameter.
[Android.Runtime.Register("setVerbatimSearchEnabled", "(Z)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=34)]
public Android.App.AppSearch.SearchSpec.Builder SetVerbatimSearchEnabled(bool enabled);
[<Android.Runtime.Register("setVerbatimSearchEnabled", "(Z)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=34)>]
member this.SetVerbatimSearchEnabled : bool -> Android.App.AppSearch.SearchSpec.Builder
Parameters
- enabled
- Boolean
Enables the feature if true, otherwise disables it If disabled, disallows use of AppSearchSchema.StringPropertyConfig.TOKENIZER_TYPE_VERBATIM and all other verbatim search features within the query language that allows clients to search using the verbatim string operator. For example, The verbatim string operator '"foo/bar" OR baz' will ensure that 'foo/bar' is treated as a single 'verbatim' token.
Returns
- Attributes
Remarks
Sets the VERBATIM_SEARCH feature as enabled/disabled according to the enabled parameter.
Android reference for android.app.appsearch.SearchSpec.Builder.setVerbatimSearchEnabled.
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.