Inserting or prioritizing results (or actions) for specific searches

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
wrburgess's picture

I am using Drupal 6 and I'm looking to answer two questions. First, the scenario:

I have a project where there are a handful of search terms that we want to "take control of" and insert logic to either prioritize results or redirect users off of the search page and onto a specific page. For most other searches, we just let the Drupal search process continue as normal.


Example #1: For instance, if a user searches for "football," I want them to receive three specific results in a particular order related to football on our site. If a user searches for hockey, however, I just want Drupal search to continue as usual.

Example #2: In another example, if a user searches for "commissioner," I want to redirect them to a specific page that we deem "The Commissioner Page."


Question #1: In the search community, is there a term used to describe this behavior or technique to customize specific search results? I don't think "interruption" or "hijacking" is the best term to use and I have found few other people looking to implement this behavior on Google, Q&A sites, or message boards because I'm not sure what terminology to best use.

Question #2: Is there a Drupal module or method that can satisfy the need to interrupt the typical Drupal 6 search process and either customize the result set or site action, or just let the search continue as usual?

Comments

did you ever hear anything back about this?

Joe.Cafiero's picture

i've got a pending project that will probably need to make extensive use of a mechanism like this; did you hear of a way to do it ... or hear anything at all about such possibilities?

i've heard of a custom module that my drupal support guys -- mediacurrent -- built for a recent project ... but i'm not sure if it fits the bill for you:

Excerpt below from the case study at
http://drupal.org/node/1460602

"Presearch -- It is common for sites to have a search box that allows users to do a generic search of the entire website for keywords. In IDT's case, they wanted to bring users directly to the correct product page if the user entered in a full part number, while still allowing the general site search to work in a standard manner if they did not. The Presearch module intercepts the search box POST, checks the database for an exact match and sends the user to the right product page. If for some reason it was only a partial match or something that wasn't a product number, users will be brought to the default search results page."