Struct SearchDocument
Represents a searchable document that has been indexed.
Assembly: com.unity.quicksearch.dll
Syntax
public readonly struct SearchDocument : IEquatable<SearchDocument>, IComparable<SearchDocument>
Constructors
SearchDocument(int, string, string, int)
Declaration
[Obsolete("Search document index is no longer used and will be removed.", true)]
public SearchDocument(int index, string id, string path = null, int score = 2147483647)
Parameters
SearchDocument(string, string, string, int)
Create a new SearchDocument
Declaration
public SearchDocument(string id, string name = null, string source = null, int score = 2147483647)
Parameters
SearchDocument(SearchDocument, int)
Declaration
public SearchDocument(SearchDocument doc, int score)
Parameters
SearchDocument(SearchDocument, string)
Declaration
public SearchDocument(SearchDocument doc, string path)
Parameters
Fields
id
Declaration
public readonly string id
Field Value
score
Declaration
public readonly int score
Field Value
Properties
index
Declaration
[Obsolete("Search document index is no longer used and will be removed.", true)]
public int index { get; }
Property Value
name
Declaration
public string name { get; }
Property Value
path
Declaration
[Obsolete("Use name to get the document name and source to get the document source path.", true)]
public string path { get; }
Property Value
source
Declaration
public string source { get; }
Property Value
valid
Declaration
public bool valid { get; }
Property Value
Methods
CompareTo(SearchDocument)
Declaration
public int CompareTo(SearchDocument other)
Parameters
Returns
Equals(object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
object |
other |
|
Returns
Overrides
Equals(SearchDocument)
Declaration
public bool Equals(SearchDocument other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Returns the document id string.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
Returns a string representation of the Document.
|
Overrides
Implements