From 54345ead5cbaffa0317d7d99ceb601baf87460a2 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Fri, 16 May 2014 13:46:02 +0200 Subject: [PATCH] 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. --- .../Modules/Orchard.Search/Services/ISearchService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard.Web/Modules/Orchard.Search/Services/ISearchService.cs b/src/Orchard.Web/Modules/Orchard.Search/Services/ISearchService.cs index a20035d57..ab76f19fc 100644 --- a/src/Orchard.Web/Modules/Orchard.Search/Services/ISearchService.cs +++ b/src/Orchard.Web/Modules/Orchard.Search/Services/ISearchService.cs @@ -4,6 +4,6 @@ using Orchard.Indexing; namespace Orchard.Search.Services { public interface ISearchService : IDependency { - IPageOfItems Query(string query, int skip, int? take, bool filterCulture, string index, string[] searchFields, Func shapeResult); + IPageOfItems Query(string query, int page, int? pageSize, bool filterCulture, string index, string[] searchFields, Func shapeResult); } } \ No newline at end of file