SearchSpec.Builder.SetScorablePropertyRankingEnabled(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 ScorablePropertyRanking feature as enabled or disabled.
[Android.Runtime.Register("setScorablePropertyRankingEnabled", "(Z)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=36)]
public Android.App.AppSearch.SearchSpec.Builder SetScorablePropertyRankingEnabled(bool enabled);
[<Android.Runtime.Register("setScorablePropertyRankingEnabled", "(Z)Landroid/app/appsearch/SearchSpec$Builder;", "", ApiSince=36)>]
member this.SetScorablePropertyRankingEnabled : bool -> Android.App.AppSearch.SearchSpec.Builder
Parameters
- enabled
- Boolean
Enables the feature if true, otherwise disables it.
Returns
- Attributes
Remarks
Sets the ScorablePropertyRanking feature as enabled or disabled. If enabled, 'getScorableProperty' function can be used in the advanced ranking expression. For details, see SearchSpec.Builder.setRankingStrategy(String).
Android reference for android.app.appsearch.SearchSpec.Builder.setScorablePropertyRankingEnabled.
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.