This project is read-only.
4
Vote

Support for sorting and pagination

description

The SearchIndex method of SearchService class could probably accept more arguments such as commonly used sorting and pagination function, the overload could be:

public SearchResult<Document> SearchIndex<Document>(Query query)
public SearchResult<Document> SearchIndex<Document>(Query query, Sort sort)
public SearchResult<Document> SearchIndex<Document>(Query query, int start, int limit)
public SearchResult<Document> SearchIndex<Document>(Query query, Sort sort, int start, int limit)

and the same as those with IResultDefinition<T> parameter.

comments

HarleyRider wrote Mar 6, 2012 at 10:45 PM

These are really needed, I would also add other overloads with just limit. It is preferable to limit the number of records being returned instead of use linq queries on the results.