Class SearchDocument
Represents a searchable document that has been indexed.
Namespace: Unity.QuickSearch
Syntax
public class SearchDocument
Constructors
SearchDocument(String, String)
Create a new SearchDocument
Declaration
public SearchDocument(string id, string metadata = null)
Parameters
| Type | Name | Description |
|---|---|---|
| String | id | Document Id |
| String | metadata | Additional data about this document |
Properties
id
Document unique id in the search index.
Declaration
public string id { get; }
Property Value
| Type | Description |
|---|---|
| String |
metadata
Additional meta data about the document
Declaration
public string metadata { get; }
Property Value
| Type | Description |
|---|---|
| String |
Methods
ToString()
Returns the document id string.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| String | Returns a string representation of the Document. |