Partager via


GenericDocument.Score Property

Definition

Returns the score of the GenericDocument.

public virtual int Score { [Android.Runtime.Register("getScore", "()I", "GetGetScoreHandler", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getScore", "()I", "GetGetScoreHandler", ApiSince=31)>]
member this.Score : int

Property Value

Attributes

Remarks

Returns the score of the GenericDocument.

The score is a query-independent measure of the document's quality, relative to other GenericDocument objects of the same AppSearchSchema type.

Results may be sorted by score using SearchSpec.Builder#setRankingStrategy. Documents with higher scores are considered better than documents with lower scores.

Any non-negative integer can be used a score.

Java documentation for android.app.appsearch.GenericDocument.getScore().

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