1
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.