Struct SearchDocument
Represents a searchable document that has been indexed.
Syntax
public readonly struct SearchDocument : IEquatable<SearchDocument>, IComparable<SearchDocument>
Constructors
SearchDocument(Int32, String, String, Int32)
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, Int32)
Create a new SearchDocument
Declaration
public SearchDocument(string id, string name = null, string source = null, int score = 2147483647)
Parameters
SearchDocument(SearchDocument, Int32)
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 readonly int index { get; }
Property Value
name
Declaration
public readonly 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 readonly string path { get; }
Property Value
source
Declaration
public readonly string source { get; }
Property Value
valid
Declaration
public readonly bool valid { get; }
Property Value
Methods
CompareTo(SearchDocument)
Declaration
public readonly int CompareTo(SearchDocument other)
Parameters
Returns
Equals(Object)
Declaration
public override readonly bool Equals(object other)
Parameters
| Type |
Name |
Description |
| Object |
other |
|
Returns
Overrides
Equals(SearchDocument)
Declaration
public readonly bool Equals(SearchDocument other)
Parameters
Returns
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Overrides
ToString()
Returns the document id string.
Declaration
public override readonly string ToString()
Returns
| Type |
Description |
| String |
Returns a string representation of the Document.
|
Overrides