android-components / mozilla.components.concept.storage / SearchResult

# SearchResult

`data class SearchResult` (source)

Encapsulates a set of properties which define a result of querying history storage.

### Constructors

<init> | `SearchResult(id: String, url: String, score: Int, title: String? = null)` Encapsulates a set of properties which define a result of querying history storage.

### Properties

id | `val id: String` A permanent identifier which might be used for caching or at the UI layer.
score | `val score: Int` An unbounded, nonlinear score (larger is more relevant) which is used to rank this SearchResult against others.
title | `val title: String?` An optional title of the page.
url | `val url: String` A URL of the page.