Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SearchResult

Contains a SearchItem that was retrieved from a query.
Read time 1 minuteLast updated 11 days ago

Definition

public readonly struct SearchResult : IEquatable<SearchResult>, IComparable<SearchResult>

Fields

Value

Description

idID of the document containing that result.
indexIndex of the document containing that result.
scoreRelavance score of the result. A lower score indicates it is a more relevant result.

Static Fields

Value

Description

nilRepresents 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

validChecks if a search result is valid.

Methods

Method

Description

CompareToCompares Search Results using their index values.
EqualsCompare Search Result using their index values.
GetHashCodeComputes the hash code for this SearchResult from its index property.