Permalink
Browse files

Increase projectx page len

  • Loading branch information...
1 parent 1ff3dbf commit 93407867d6ced0bb4695ddace8e31c45c8666a94 @arjan arjan committed Mar 15, 2013
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/support/z_search.erl
@@ -34,13 +34,14 @@
-include_lib("zotonic.hrl").
--define(OFFSET_LIMIT, {1,?SEARCH_PAGELEN}).
+-define(PROJECTX_PAGELEN, 1000).
+-define(OFFSET_LIMIT, {1,?PROJECTX_PAGELEN}).
-define(OFFSET_PAGING, {1,20000}).
%% @doc Search items and handle the paging. Uses the default page length.
%% @spec search_pager({Name, SearchPropList}, Page, #context{}) -> #search_result{}
search_pager(Search, Page, Context) ->
- search_pager(Search, Page, ?SEARCH_PAGELEN, Context).
+ search_pager(Search, Page, ?PROJECTX_PAGELEN, Context).
%% @doc Search items and handle the paging
%% @spec search_pager({Name, SearchPropList}, Page, PageLen, #context{}) -> #search_result{}
@@ -50,7 +51,7 @@ search_pager(Search, Page, PageLen, Context) ->
pager(#search_result{pagelen=undefined} = SearchResult, Page, Context) ->
- pager(SearchResult, Page, ?SEARCH_PAGELEN, Context);
+ pager(SearchResult, Page, ?PROJECTX_PAGELEN, Context);
pager(SearchResult, Page, Context) ->
pager(SearchResult, Page, SearchResult#search_result.pagelen, Context).

3 comments on commit 9340786

@kaos
Member
kaos commented on 9340786 Mar 15, 2013

core: 😉

@arjan
Member
arjan commented on 9340786 Mar 15, 2013

Oops. this is a hotfix anyway..

@kaos
Member
kaos commented on 9340786 Mar 15, 2013

Yeah, I also miss information in the @github GUI about which branch a commit is found on.

Please sign in to comment.