SearchResult.SearchResult Constructor

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

SearchResult(Query, IEnumerable, long?)

Initializes a new instance of the SearchResult class.

public SearchResult(Query<T> query, IEnumerable<T> result, long? total)

Parameters

query
Weavy.Core.Models.Query<>

The query used to perform the search.

result
System.Collections.Generic.IEnumerable<>

The collection of items that matched the query.

total
long?

The total number of hits in the result set.