Chronos

Topic: Search Rewritten - Pagination support

This modification replaces the default search function with one that adds pagination support. Although it does not use ‘Full Text’ search, it loads quickly regardless of the amount of jobs in the database.

I’ve included two search methods, you can choose and test both at the config.php. Both have pagination. They are:

1. Classic JB Search: The default of JB 1.7. I don’t think it’s very user-friendly, as it only seems to work good when searching in the format of “keyword1 keyword2″ or “keyword1, cityname”.

2. Chronos Modified Search: Keywords are seperated by spaces, each of them must be in either the title, cityname or description. There are likely more results than the classic search, but a user can give as many keywords as he likes.

Modification Features:
    * Adds pagination support to the search function
    * Two search methods are included
    * Supports large databases (Full Text may follow if needed)
    * Allows user to go back and forth from search pages (when in deeper pages)

Full guide: Search Pagination Support

Member of Jobberbase Development Team - Implementation and Coding

Visit my Blog: ChronoScripts (JobberBase scripts, support and freelance)
JobBoards: Telefonisch Werk and Top Bijbaan

filipcte

Re: Search Rewritten - Pagination support

fantastic!
will you add it into trunk as well?

Original jobberBase author
www.filipcte.com

Chronos

Re: Search Rewritten - Pagination support

Will do, but I'll wait for some people to have it running, to make sure it's bug-free smile

Member of Jobberbase Development Team - Implementation and Coding

Visit my Blog: ChronoScripts (JobberBase scripts, support and freelance)
JobBoards: Telefonisch Werk and Top Bijbaan

hobo

Re: Search Rewritten - Pagination support

Hi, I tried the search on a site that was having issues loading without pagination and it works great!
Search history bugs could be worked around if the first search result page forces displaying the full search url, for example .../search/keyword1 keyword2/?p=1
Other result pages (2,3,4...) do not have this issue.
Thanks for the script!

Last edited by hobo (2009-08-16 19:32:46)