Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

search.pm sort by priority

Quote Reply
search.pm sort by priority
Hi everyone,
I have modified LinksSQL by adding a priority rating to the links display. Everything works perfectly except for the fact that in searches I cannot seem to sort the order of the display. I have studied the search.pm, search.cgi, and search-ni.cgi modules for insights on how the search results are prioritized by score, yet, I need to add a routine which will sort the outcome on the basis of its priority rating. (By the way, priority ratings are an integer value from 0-9 located in a column called isPriority in the Links table).

I have attempted to change the SQL statements with an "ORDER BY Links.isPriority" clause (where applicable), but, to no avail. I have also attempted to modify the sort commands but with no success either.

How can I access the ranking system of the returned results to add sort parameters? Or, is it possible to wait until the sort is completed and (before the output is created) add a routine to sort by priority?

Has anyone successfully done this hack? I would appreciate any insights you might have to help me solve this problem.

Thanks

Subject Author Views Date
Thread search.pm sort by priority bigd 5995 Dec 8, 2000, 9:44 AM
Thread Re: search.pm sort by priority
bigd 5895 Dec 14, 2000, 5:58 AM
Thread Re: search.pm sort by priority
pugdog 5873 Dec 14, 2000, 5:45 PM
Post Re: search.pm sort by priority
bigd 5845 Dec 15, 2000, 4:04 AM
Thread Re: search.pm sort by priority
Alex404 5866 Dec 15, 2000, 7:33 AM
Thread Re: search.pm sort by priority
bigd 5870 Dec 15, 2000, 8:07 AM
Thread Re: search.pm sort by priority
bigd 5850 Dec 18, 2000, 12:42 PM
Thread Re: search.pm sort by priority
bigd 5819 Dec 28, 2000, 10:43 AM
Thread Re: search.pm sort by priority
bigd 5780 Jan 4, 2001, 10:59 AM
Thread Re: search.pm sort by priority
pugdog 5834 Jan 4, 2001, 2:10 PM
Thread Re: search.pm sort by priority
bigd 5772 Jan 5, 2001, 4:15 AM
Post Re: search.pm sort by priority
Alex 5711 Jan 10, 2001, 12:38 PM