I'm trying to create a specific type of keyword search, and wondered if anyone could suggest how I might achieve this (i.e. a suitable set of modules).
Some of the nodes on my site will be tagged with keywords (for example, using Taxonomy). These keywords will be weighted for each node (maybe using nodeorder, or another node ordering solution.)
When a user "searches" for one of these keywords, the results will be the matching nodes ordered by weight.
So far, so good. I reckon that this could probably be achieved with the modules above (and maybe Views or Custom Search).
However, the way I'd like it to work is as follows...
- The site will contain a block containing the search field for this keyword search. This will only search the relevant tags, rather that doing a full search of all content. (The site will feature a "normal" search of all content too, but that's the easy bit!)
- When a user carries out a search, they will be taken to the best matching page rather than a results page - much like Google's "I'm Feeling Lucky".
- The page they've been taken to will contain a results block showing all matching pages, ordered by weight. (This will be a different block to the one containing the search field.)
- Clicking on any of the results will take them to the corresponding page, keeping the results block in place.
Naturally this means that when users end up on one of these results pages, the results block is based on the search they carried out, not the page they're looking at. And if they navigate directly to the page, the results block will be empty.
Any suggestions?
Thanks.