Sign in
Log inSign up

Search result display and pagination in an ExpressJS app

Emmanuel's photo
Emmanuel
·May 22, 2017

I'm trying to learn more express and mongodb, so I'm working on a feature that allows a user to search for quotes with certain words in them. So far I'm using mongoose-search-plugin npm module to handle the searching and displaying of the quotes; but I don't want to just display all the quotes on one page when a user searches. So far I've been able to limit the amount of quotes a search brings to just 10 quotes using mongoose-search-plugin npm module, but I'm stuck because I don't know how to implement a <next> button feature so that the user can click on it to see more quotes that matched his search. Can anyone please give me any pointers? Any help kind of help is gratefully wolfed down.