I've setup XSLTsearch and it works perfect! I only have one issue with the search and previewing the last word. For instance I have 'Fjeldsted' as the last word on one page. But the preview just shows me the first characters of the page. If I add text after the word so it isn't the last word any more the preview works fine. Is it my setup or a bug? If its my setup what am I doing wrong?
Thanks for the bug report! Seems that faulty logic has been there for a long time and you're the first to notice.
For anyone else who finds this, the issue only appears when:
You have previewType="CONTEXT" set in your macro parameters
You search for a word that appears at the end of the content and is NOT followed by a space (though other non-whitespace characters might follow the search term the important point is that there is no whitespace)
The solution in XSLTsearch 3.0.1 is to change line 165 of the /app_code/xsltsearch.cs file (in the contextOfFind() function) from:
string remaining = data;
to
string remaining = data + " ";
I'll include the fix in the next version of XSLTsearch.
Im still having problems with this. I've updated my XSLTsearch to the newest version and changed string remaining = data + " "; But the problem still appears. Do you have any idea why? Other fixes? Hehe.
That should work. Have you got a link where I can see it in action? (if a not-for-public-consumption site, you can use my contact form to send me the link privately at http://www.percipientstudios.com/about/contact.aspx)
The very last word and previewing it
Hello
I've setup XSLTsearch and it works perfect! I only have one issue with the search and previewing the last word. For instance I have 'Fjeldsted' as the last word on one page. But the preview just shows me the first characters of the page. If I add text after the word so it isn't the last word any more the preview works fine. Is it my setup or a bug? If its my setup what am I doing wrong?
Thanks in advance.
Its even the same on XSLTsearchs own website: http://www.percipientstudios.com/search.aspx?search=today!&submit.x=0&submit.y=0
If you put just to words after ie. "Fjeldsted one two" it works with the preview.
Bump, anything or anyone?
Thanks for the bug report! Seems that faulty logic has been there for a long time and you're the first to notice.
For anyone else who finds this, the issue only appears when:
The solution in XSLTsearch 3.0.1 is to change line 165 of the /app_code/xsltsearch.cs file (in the contextOfFind() function) from:
string remaining = data;
to
I'll include the fix in the next version of XSLTsearch.
cheers,
doug.
Thanks for the reply, my client will be happy - couldn't seem to fix the error myself :)
Hi Doug
Im still having problems with this. I've updated my XSLTsearch to the newest version and changed string remaining = data + " "; But the problem still appears. Do you have any idea why? Other fixes? Hehe.
That should work. Have you got a link where I can see it in action? (if a not-for-public-consumption site, you can use my contact form to send me the link privately at http://www.percipientstudios.com/about/contact.aspx)
cheers,
doug.
is working on a reply...