1
whooven
Common Search Term Results?
  • 2006/12/1 16:12

  • whooven

  • Just popping in

  • Posts: 42

  • Since: 2006/2/17


I searched and didn't find anything on this subject so here's a new post.

I'm building a new XOOPS site that will probably see a lot of use of the search function. I'd like to reduce database calls. Is there a way to intercept searches for common words so I can send users to a pre-made results page? The site will not have a lot of frequent content updates so I'm not worried about "canned" search results getting stale quickly. I just want to reduce server load.

For example, could I add some code in the search code such as (I know this isn't valid code, just giving an example):


if search query="monkeys" or "gorillas"
send to "/searches/apes.php"
if search query="terrier" or "dalmation"
send to "/searches/canines.php"
if search query="george jones" or "gomer pyle"
send to "/searches/humans.php"


If one of those terms isn't used, the regular search would proceed.
"I'm going to see if this internet thing takes off" - someone told me this when I suggested he needed a website.

2
whooven
Re: Common Search Term Results?
  • 2006/12/6 15:48

  • whooven

  • Just popping in

  • Posts: 42

  • Since: 2006/2/17


bump. It's hard to believe that no one has thought of this. Surely there must be some interest to reduce server load from searches.
"I'm going to see if this internet thing takes off" - someone told me this when I suggested he needed a website.

Login

Who's Online

225 user(s) are online (190 user(s) are browsing Support Forums)


Members: 0


Guests: 225


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits