Unable to rewrite Drupal's node search to CSE search
dantw - March 13, 2009 - 16:23
| Project: | Google Custom Search Engine |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
We're making CSE our only search option by disallowing users from accessing Drupal's content search. By doing so, we also set up a rewrite rule as follows to accomodate any old links using the node search -
RewriteRule ^/search/node/(.*)$ /search/google?cx=cxid&cof=FORID%3A11&query=$1&op=SearchHowever, the rewrite only take you to the CSE search page without returning any results. The keyword does appear in the search box but you need to click the Search button again to get the results.
It's noted the rule indeeds rewrites a search on 'madoff' to
index.php\?q=search/google&cx=cxid&cof=FORID%3A11&query=madoff&op=Search
We're not sure this is a bug. But it would be nice if we can get the search results immediately as we would when using Drupal's default node search.
Thanks.

#1
subscribing.
I'm interested in hearing how this turns out as this is a route we may be interested in going, too.