How to implement a "sub search"

Post Reply
glenn15
Posts: 4
Joined: Fri Jan 31, 2003 11:53 am

How to implement a "sub search"

Post by glenn15 »

We currently have Webinator providing text search for a jobs database. These are Jobs posted by various Members... It's working marvelously.

Here's my question:
Currently the search returns results from ALL of the Jobs regardless of which Member posted the Job.

I'd like to provide a text search that returns results ONLY from a specific member.

The links in the base URL that Webinator is crawling look like this:

<a href="/page.html?job=123&member=456">JobTitle</a>

Is this possible with Webinator?

Regards
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

How to implement a "sub search"

Post by mark »

Yes. Edit the "search" script. Find where it says "<$sql=". Add an and clause something like
and Url like 'member 456'
or more generically add a line before that like
<strfmt "member %s" $member><$mq=$ret>
and use
and Url like $mq
and add an export for $mq at the top by the others
<EXPORT $mq QUERY USEROK>
glenn15
Posts: 4
Joined: Fri Jan 31, 2003 11:53 am

How to implement a "sub search"

Post by glenn15 »

That's terrific - thanks for the reply, Mark. I was able to follow at least some if it ;->
Rereading my original post I wonder if I did a good job describing what I need, though.

3 Points:
- I have between 50-100 members who need this functionality...not one only.

- I carry the <member> number as a variable in every page on my site so it is "available" to be inserted on demmand if needed to produce a "generic" solution as individual pages are browsed (preferable).

- Finally, while 50-100 is a lot, it's not 1,000s and they don't all need it at once, so a solution where I have to tweak individually (specific profiles?) is not out of the realm.

Apologies if you already addressed this. I'm struggling to fully comprehend the "more generic" solution you proposed as I come up to speed on Webinator.

Regards,

Glenn
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

How to implement a "sub search"

Post by mark »

Post Reply