Gossamer Forum
Home : Products : Gossamer Links : Discussions :

category order in search

Quote Reply
category order in search
Hi,

I'm wondering if anyone else has been having trouble sorting the order of the categories in search results using build_sort_order_search_cat??

I've installed 2.1.1 from scratch and no matter what I do the categories come up in alphabetical order... Is there something else I need to do? I've made a new category column for sorting, rebuilt the search, tables, tried assigning only category per link... and I've read all the post on this issue but no-one else seems to be having this problem...
Quote Reply
Re: [joey] category order in search In reply to
How do you want them sorted?

Have you tried using just 'score' in the sort order field?

Klaus

http://www.ameinfo.com

Last edited by:

klauslovgreen: Jan 19, 2003, 9:42 PM
Quote Reply
Re: [klauslovgreen] category order in search In reply to
The build category sort order (build_category_sort) works fine and I want to get the same order in the search results. No matter what category column I specify it always returns the categories alphabetically. I've set the Weight on only the 'Priority' column and assigned numbers to each category to determine the order -- to no avail. Any other ideas???
Quote Reply
Re: [joey] category order in search In reply to
Hi Joey,

Try to check Setup > Search Options >

Set build_sort_order_search_cat to 'score' or whatever you prefer...

Cheers
Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] category order in search In reply to
That's exactly what I did, but no matter what column I specify the result order is the same -- alphabetical.

Another thing I've noticed is that even if the weight for a column is set at zero , it still brings up results, i.e. even if there is no weight on the 'Name' column, a search for a category name will bring it up in the results. I wonder if that's related to my problem???
Quote Reply
Re: [joey] category order in search In reply to
How have you indexed categories? If they are nonindexed then serach weight is not accounted for to my knowledge... try to index Internally for example.

If you place just the word score (no fields) in build_sort_order_search_cat is should work (works for me anyway)


Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] category order in search In reply to
I set the categories to internal index, it stopped searches on non-weighted columns, but didn't have any effect on the sorting of the categories in the search results. I used 'score' for build_sort_order_search_cat but still alphabetical...
Quote Reply
Re: [joey] category order in search In reply to
I know it's possible to pass into search.cgi a 'sort by' Links Column, ie search.cgi?query=guitar&sb=Price

Is there are similar 'sort by' Category Column I can pass into the search.cgi??
Quote Reply
Re: [joey] category order in search In reply to
I can't help you here - haven't tried that... but the score works for me in the search bit...

You can try to switch off the sort by category in the search options and see if that helps?

Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] category order in search In reply to
Thanks for your help, much appreciated, but it seems nothing I try changes the category order... there must be something I'm not doing because I've just done a fresh install of 2.1.2 and put in basic test data but same old problem... going round in circles getting dizzy. Does anybody have any hints??
Quote Reply
Re: [joey] category order in search In reply to
Aha! Just realized we've been talking about two different things...

In the search returns, I'm interested in the Links results, not the Category results. There is the build_search_gb option in the setup, if it's turned ON then the Links are grouped by category... it's this category order I want to change to the same order as determined by build_sort_order_search_cat

Does anybody know how I could go about this??