Struct SearchDocument
Represents a searchable document that has been indexed.
Syntax
public struct SearchDocument : IEquatable<SearchDocument>, IComparable<SearchDocument>
Constructors
SearchDocument(Int32, String, String, Int32)
Create a new SearchDocument
Declaration
public SearchDocument(int index, string id, string path = 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
index
Declaration
public readonly int index
Field Value
score
Declaration
public readonly int score
Field Value
Properties
path
Declaration
public string path { 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