[Dancer-users] Dancer::Plugin::SQLSearch
Naveed Massjouni
naveedm9 at gmail.com
Fri Dec 30 22:19:52 CET 2011
On Fri, Dec 30, 2011 at 4:11 PM, Julio Fraire <julio.fraire at gmail.com> wrote:
> Hola amigos!
>
> I have uploaded Dancer::Plugin::SQLSearch to CPAN, which is aimed to help
> with the creation of simple search pages. Basically, it will take a search
> query and turn it into a data structure suitable for SQL::Abstract. You then
> supply a subroutine that takes this data structure and performs the actual
> search in your database.
>
> From the plugin (and your search routine) you get the first page of results
> and information to build pagination links. It also saves some info in the
> session object to offer "back to search results" links for your destination
> pages.
>
> Hopefully the documentation is clear enough for you to play with this little
> plugin; the tests should offer some insight as well. I hope you find it
> useful.
>
> Happy new year,
>
> Julio Fraire
>
This plugin looks awesome. Thanks for creating it. I have one
suggestion. It makes more sense to me if the default behavior were
that terms were AND'ed instead of OR'ed. So that a search for "orion
belt" didn't return results for the kind of belt that holds your pants
up.
-Naveed
More information about the Dancer-users
mailing list