Class SearchDocument
Represents a searchable document that has been indexed.
Namespace: Unity.QuickSearch
Syntax
public class SearchDocument
Constructors
SearchDocument(String, String)
Declaration
public SearchDocument(string id, string metadata = null)
Parameters
| Type | Name | Description |
|---|---|---|
| String | id | |
| String | metadata |
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 |