There is no known bug with short searches, except a quirk with the letter 's' sometimes. And XSLTsearch never does a redirect of any kind so I don't think the behavior is XSLTsearch related specifically.
Can you show us the macro properties you're using. Any chance of a live url so I can see the behavior myself?
Thanks for the link to the site. I have to say I am absolutely at a loss to explain this behavior. I want to say it isn't XSLTsearch because it has no redirection at all in it. I have a feature request for automatically redirecting to a page if there is only a single return to the search but that won't be included until a future version.
though I dont know what the exact problem was, I found out that the issue was that I made a change in your XSLTsearch.xslt file to return the output for the matching nodes like this:
<!-- page name and url -->
<xsl:value-of disable-output-escaping="yes" select="umbraco.library:RenderTemplate(@id, 1295)"/>
Somehow specific pages in the searchresults triggered a redirect when rendering the template.
I fixed it by taking the content of the template and implementing it in xslt the "standard" way like this:
short text searches.
I have recently implemented xslt search on a site once again and experience strange behaviour when searching for specific frases. fx:
"/search-result.aspx?search=er" redirects to another page
"/search-result.aspx?search=r" and "/search-result.aspx?search=e" redirects to that same page.
"/search-result.aspx?search=a" redirects to another page.
"/search-result.aspx?search=re" gives me the search results I want.
In other words, certain small search terms acts strange and gives the error message "Failed to load source for: http://mypage.dk/search-result.aspx?search=er" in firebug.
Do you know if anyone else has experienced this? Or do you have any idea what it might be?
Thanks again for a great package.
Cheers Sune Fengel
I belive Doug is aware of this and is working on an updated version of XSLTSearch. Just a case of watch this search.
You could implement something in the mean time to only search on say a minimum of 3 characters?
Matt
Ok I'll do that :)
- Sune
That was meant to be "watch this space", but I'm sure you knew that =)
Matt
There is no known bug with short searches, except a quirk with the letter 's' sometimes. And XSLTsearch never does a redirect of any kind so I don't think the behavior is XSLTsearch related specifically.
Can you show us the macro properties you're using. Any chance of a live url so I can see the behavior myself?
cheers,
doug.
Ahhhh, my bad. I remembered talking about it, but forgot the full detail.
Matt
Hi Doug Sorry I didnt see your reply until now.
you can see the behaviour here
http://kundeconew.fserver.dk/search-result.aspx?search=er
(which redirects)
vs.
http://kundeconew.fserver.dk/search-result.aspx?search=top
(which performs the xslt search)
Any help would of course be appreciated, but just knowing that this is no normal xsltsearch bug, makes me want to test the page thoroughly.
best regards
- Sune
I've also setup a barebone xsltsearch stripped of everything else here
http://kundeconew.fserver.dk/search-result-test.aspx?search=test
The masterpage:
Hi, Sune,
Thanks for the link to the site. I have to say I am absolutely at a loss to explain this behavior. I want to say it isn't XSLTsearch because it has no redirection at all in it. I have a feature request for automatically redirecting to a page if there is only a single return to the search but that won't be included until a future version.
Is there any chance you'd let me log into your site? If you'd be comfortable with that, please contact me through my website, http://www.percipientstudios.com/about/contact.aspx
cheers,
doug.
Sure thing Doug.
We have a presentation for the customer today so if it's okay I'll contact you tomorrow morning with login details.
best regards
- Sune
PS. Dont spend too much time debugging as there is a good possibility that the error is within our site ;)
Hello again Doug.
I managed to debug and fix the problem.
though I dont know what the exact problem was, I found out that the issue was that I made a change in your XSLTsearch.xslt file to return the output for the matching nodes like this:
Somehow specific pages in the searchresults triggered a redirect when rendering the template.
I fixed it by taking the content of the template and implementing it in xslt the "standard" way like this:
and problem was solved.
But thanks for your help and again, thanks for a great package.
best regards
- Sune
is working on a reply...