Open dannyblv opened 10 years ago
pager.total has the number of pages. Not quite the same thing as the total number of results. It would be a very simple pull request to make that information available in req.extras though. You'd do it right where setPagerTotal gets called.
On Wed, Sep 10, 2014 at 4:23 AM, Danny Braunstein notifications@github.com wrote:
I tried search.length but it returns only the number of the current page results, and not the total. thanks.
@israelidanny https://github.com/israelidanny
— Reply to this email directly or view it on GitHub https://github.com/punkave/apostrophe-search/issues/1.
THOMAS BOUTELL, DEV & OPS P'UNK AVENUE | (215) 755-1330 | punkave.com
(# of pages = # of pages of search results)
On Wed, Sep 10, 2014 at 7:19 AM, Tom Boutell tom@punkave.com wrote:
pager.total has the number of pages. Not quite the same thing as the total number of results. It would be a very simple pull request to make that information available in req.extras though. You'd do it right where setPagerTotal gets called.
On Wed, Sep 10, 2014 at 4:23 AM, Danny Braunstein < notifications@github.com> wrote:
I tried search.length but it returns only the number of the current page results, and not the total. thanks.
@israelidanny https://github.com/israelidanny
— Reply to this email directly or view it on GitHub https://github.com/punkave/apostrophe-search/issues/1.
THOMAS BOUTELL, DEV & OPS P'UNK AVENUE | (215) 755-1330 | punkave.com
THOMAS BOUTELL, DEV & OPS P'UNK AVENUE | (215) 755-1330 | punkave.com
Hmm I see, is there a way to declare how many resulsts to show per page ? if not, how can I pull all the search results ? and not just the results per page ?
thanks
We paginate search results so that we can fetch associated images, etc. without an unpleasant amount of overhead (i.e. slow search results pages). Most people find what they want on page one or not at all.
If you don't like the pagination though, you could introduce infinite scroll without changing the server side at all. Check out the way we do this in the default index.html template for the blog module.
On Mon, Sep 22, 2014 at 4:36 AM, Danny Braunstein notifications@github.com wrote:
Hmm I see, is there a way to declare how many resulsts to show per page ? if not, how can I pull all the search results ? and not just the results per page ?
thanks
— Reply to this email directly or view it on GitHub https://github.com/punkave/apostrophe-search/issues/1#issuecomment-56344089 .
THOMAS BOUTELL, DEV & OPS P'UNK AVENUE | (215) 755-1330 | punkave.com
I tried
search.length
but it returns only the number of the current page results, and not the total. thanks.@israelidanny