PDA

View Full Version : How to pass search results as a parameter


dzornow
07-25-2007, 01:28 PM
Hi. We are using an XHTML parser and need to pass the results of each search as a parameter to program. Here's an example of what I mean:

The Zoom Search returns this link:
URL: http://www.MyWebSite.com/About_Us/000_About_Us.xhtml

But clicking on that link returns a Page Not Found message.

To make it work correctly, we need to reformat all pages that contain the string ".xhtml" as follows:

http://www.MyWebSite.com/showcontent.aspx?content=~/About_Us/000_About_Us.xhtml

That is, I need to pass the path & page from the search results (/About_Us/000_About_Us.xhtml) as a parameter to another page
(http://www.MyWebSite.com/showcontent.aspx?content=~)

I did a *little* messing around with the generated asp code, but it isn't obvious to me which variable contains the "page found." And even if I do figure out which one it is, I'll have to manually edit the search.asp page each time the site is reindexed!

It's pretty clear to me given how cool and flexible Zoom Search is that there *must* be a better way. I just haven't stumbled across it yet.

Can you give me a clue?

Thanks for your help!

wrensoft
07-25-2007, 01:48 PM
Are you using Spider mode or Offline mode?

If you are using Spider mode then the URLs should all be correct from the start as you would be spidering the live site? So I assume you are using offline mode?

In offline mode you can just change the base URL to be,
http://www.MyWebSite.com/showcontent.aspx?content=~/ (http://www.MyWebSite.com/showcontent.aspx?content=~/)
and it should work?

dzornow
07-25-2007, 02:01 PM
I was "offline."

I just reindexed it spider mode and it's now working.

Thanks for the fast reply!