Gossamer Forum
Quote Reply
Searching
If someone does a search using search.cgi and they don't find any results is there a way of automatically using the search-ni.cgi to perform the search? I know this may take longer to search but it might provide a result for the user instead of sorry we couldn't find anything.

Thanks
Jason
Quote Reply
Re: Searching In reply to
jasonx,

I don't see why you couldn't do that. Look at the sub that gets used to conduct the search...especially near where if $results is empty send them the No Matches Found page. What you could do is require 'search-ni.cgi' and then instead of sending them the no matches found html document call the sub that does the non-indexed search. Just make sure you require search-ni.cgi, and pass it's sub the correct values for any parameters it needs. You may have to go through and rename some subs if search.cgi and search-ni.cgi have the same sub names.
Quote Reply
Re: Searching In reply to
I think anything that matches in search-ni.cgi should also match in search.cgi.

Cheers,

Alex