Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Searching in category

Quote Reply
Searching in category
Hi,

I’m using LinkSQL 3.04. I`ve got the following categories and subcategories:

TopCat [ID=1] > Sub1Cat [ID=2] > Sub2Cat [ID=3]

Or, otherwise:

TopCat/Sub1Cat/Sub2Cat

To search for the links I`ve got to use:

../search.cgi?catid=1;catid=2;catid=3&query=XXXX

How can I search both in TopCat and in the subcategories using solely the ID for the TopCat category?

../search.cgi?catid=1&query=XXXX ....????

Thanks in advance,

JoseML
Quote Reply
Re: [JoseML] Searching in category In reply to
Hi JoseJM,

Yes, just pass the root category id. Then GLinks will pull all matched topics of any subcategoies.

Cheers,

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] Searching in category In reply to
Hi, Dat.

Thanks a lot for the quick response, but using root category id is not working for me.

I`ll explain my situation more clearly, I`ve got:

TopCat [ID=1]
Link1
Link2

Sub1Cat [ID=2]
Link3

Sub2Cat [ID=3]
Link4
Link5

When I search through ../search.cgi?catid=1&query=*
I get the result: Link1 + Link2

When I search through ../search.cgi?catid=1;catid=2&query=*
I get the result: Link1 + Link2 + Link3

When I search through../search.cgi?catid=1;catid=2;catid=3&query=*
I get the result: Link1 + Link2 + Link3 + Link4 + Link5


Which is missing ../search.cgi?catid=1&query=*

So as to get : Link1 + Link2 + Link3 + Link4 + Link5

Thanks a lot,

JoseML
Quote Reply
Re: [JoseML] Searching in category In reply to
Hi JoseML,

Glinks' search function can do this. Is there any problem with your database? Cat-tree?

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] Searching in category In reply to
Thanks Dat,

I been checking my database, which posses 752 categories, and i've found that all of them show:

CatRoot = 0
CatDepth = 0

Is this correct ?

On the other hand, what problems can i have if i run "Rebuild Cat. tree"?

Thanks again,

JoseML
Quote Reply
Re: [JoseML] Searching in category In reply to
I am not sure. And I cannot advise you to rebuild Cat. tree. Please just submit a ticket for GT's support staff to have their advice.

Otherwise, if you wish to do that yourself, please just make a backup before doing so.

Just let me know if you need more helps.

Cheers,

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] Searching in category In reply to
Hi Dat , thanks for you help. I will write to support staff.

JoseML
Quote Reply
Re: [tandat] Searching in category In reply to
Hi,

I`ve already repaired my database running:

Rebuild Cat. tree
Repair Tables
Rebuild Search


Now when I do:
..search.cgi?catid=[ID_root];query=*

it shows the links in the root category and in all subcategories.
However, not all which should appear do, and I cant find out the reason why.


What could be happening?.

JoseML