ドキュメント

Unity Engine

Unity Engine

SearchResult

Contains a SearchItem that was retrieved from a query.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.