PDA

View Full Version : Placing the query string in the results URL



iantresman
05-05-2005, 12:16 AM
Can I get the query string to appear in the results URL, for example, the resulting docment is displayed with the URL:

http://www.domain.com/pages/found.htm?s=search+string
where "search string" is my query.

This way I could get a third party script to highlight the query string, without having to modify every file, by changing the base URL to produce a URL of the form:

http://www.domain.com/display.php?file=pages/found.htm?s=search+string

Regards,
Ian Tresman

Ray
05-05-2005, 12:50 AM
When you enable "Jump to match and highlight within document" (under "Results Layout"), Zoom will add the search query to the result URL like so:

http://www.mysite.com/mypagefound.html?zoom_highlight=search+string

You may still need to come up with a way to prefix all your URLs with your third party script and pass the filename as a parameter accordingly.

FYI, we are considering a feature to allow in-document highlighting without having to modify every page, however we won't be looking at this until Version 5.0 which is still some time away.