Class SearchResponse<T>
A strongly typed search response.
Inheritance
System.Object
SearchResponse<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Redis.OM.Searching
Assembly: Redis.OM.dll
Syntax
public class SearchResponse<T>
Type Parameters
Name | Description |
---|---|
T | The type. |
Constructors
| Improve this Doc View SourceSearchResponse(RedisReply)
Initializes a new instance of the SearchResponse<T> class.
Declaration
public SearchResponse(RedisReply val)
Parameters
Type | Name | Description |
---|---|---|
RedisReply | val | The response to use to initialize the Search Response. |
Properties
| Improve this Doc View SourceDocumentCount
Gets or sets the number of documents found by the search.
Declaration
public long DocumentCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
Documents
Gets the documents.
Declaration
public IDictionary<string, T> Documents { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, T> |
Item[String]
Gets a particular document by it's ID.
Declaration
public T this[string key] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | key | the key to use to look up. |
Property Value
Type | Description |
---|---|
T |