SearchResult
Contains a SearchItem that was retrieved from a query.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Struct
- Namespace: UnityEditor.Search
- Assembly: UnityEditor
- Implements: IEquatable<SearchResult>, IComparable<SearchResult>
public readonly struct SearchResult : IEquatable<SearchResult>, IComparable<SearchResult>
Fields
Value | Description |
|---|---|
| id | ID of the document containing that result. |
| index | Index of the document containing that result. |
| score | Relavance score of the result. A lower score indicates it is a more relevant result. |
Static Fields
Value | Description |
|---|---|
| nil | Represents a null search result. |
Constructors
Constructor | Description |
|---|---|
| SearchResult(System.Int32) | Creates a new SearchResult. |
| SearchResult(System.Int32,System.Int32) | Creates a new SearchResult. |
| SearchResult(System.String,System.Int32,System.Int32) | Creates a new SearchResult. |
Properties
Property | Description |
|---|---|
| valid | Checks if a search result is valid. |
Methods
Method | Description |
|---|---|
| CompareTo | Compares Search Results using their index values. |
| Equals | Compare Search Result using their index values. |
| GetHashCode | Computes the hash code for this SearchResult from its index property. |