Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Searching Fields and Categories

Quote Reply
Searching Fields and Categories
I was just reading another thread where Alex explains how to search by field or category:

In Reply To:
search.cgi?isNew=Yes
to get a list of all new links.

You can also filter against a regular query:
search.cgi?query=cars&isNew=Yes
to find a list of results that match cars and are new.

You can also search within a category:
search.cgi?query=cars&catid=123
to find all links that match cars and are within category 123.
Question - Would this work?:

search.cgi?query=cars&catid=123&isNew=Yes

results - all records with "cars" in category 123 that are new -- or does it only work with &catid= OR &field=, not both?

Thanks for your help. I am not at the point where I can test this, and it's hard to test it on the demo without knowing catid numbers.

Quote Reply
Re: Searching Fields and Categories In reply to
Hi,

In theory, yes, that should work. You can try in the demo by going to a category, and do a search (and select "only in this category"). Then add on to the URL isNew=Yes.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Searching Fields and Categories In reply to
At first I thought it worked then I started looking more closely at the results!

I went to the what's new page to find a category that had new links... Pets: Theme Merchandise had some, so I went to that and did a search for "dogs" only in that category. I got a list of 77 links:
http://www.gossamer-threads.com/perl/links-sql2/search.cgi?query=dogs&catid=248752

Then I added the isNew=Yes, and instead of showing just the new links, it added the new icon to all 77 links:
http://www.gossamer-threads.com/perl/links-sql2/search.cgi?query=dogs&catid=248752&isNew=Yes

Then I searched in the whole directory for "dogs" 453 links were returned:
http://www.gossamer-threads.com/perl/links-sql2/search.cgi?query=dogs

I added the isNew, and the same thing happened (all 453 have the new icon next to them:
http://www.gossamer-threads.com/perl/links-sql2/search.cgi?query=dogs&isNew=Yes

I did some more experimenting,
This works:
http://www.gossamer-threads.com/perl/links-sql2/search.cgi?isNew=Yes

But this does not work (same results):
http://www.gossamer-threads.com/perl/links-sql2/search.cgi?isNew=Yes&catid=248752

I tried searching with other fields.. and the field search it seems only to work properly if it is by itself search.cgi?field=x.

??
Quote Reply
Re: Searching Fields and Categories In reply to
Thanks, I'll look into this further..

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Searching Fields and Categories In reply to
Hi Alex,

AtoZ is correct....

> But this does not work (same results):
> http://www.gossamer-threads.com/perl/links-sql2/search.cgi?isNew=Yes&catid=248752

Using a search by field does not work in combination with cid. This is also the search criteria I have been trying to get to work as I have web pages that need to query my engine this way. Community=San+Diego&cid=nnn where nnn is cat number and results need to reflect all subcategories below nnn.

Also is there any way we can get this thing to do the search by phrase using quotes (i.e. "Key Words") like is done by the big boys like altavista and infoseek?

Quote Reply
Re: Searching Fields and Categories In reply to
Hi,

This seems to be working now in the new beta.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Searching Fields and Categories In reply to
Great, Alex!

I just tried the examples above, and it does look like it works now. I'm so excited. :)

Thanks!