Changed argument names to match the way they are interpreted by the default implementation.

The term "skip" is generally interpreted as representing the number of records to skip.
However, the SearchService implementation interprets this value as the start page, not the number of records to skip.
We could have changed the implementation to match the interface, but doing it the other way around is safer.
This commit is contained in:
Sipke Schoorstra
2014-05-16 13:46:02 +02:00
parent edef7b3b11
commit 54345ead5c

View File

@@ -4,6 +4,6 @@ using Orchard.Indexing;
namespace Orchard.Search.Services {
public interface ISearchService : IDependency {
IPageOfItems<T> Query<T>(string query, int skip, int? take, bool filterCulture, string index, string[] searchFields, Func<ISearchHit, T> shapeResult);
IPageOfItems<T> Query<T>(string query, int page, int? pageSize, bool filterCulture, string index, string[] searchFields, Func<ISearchHit, T> shapeResult);
}
}