I have built the search function following the instructions in [url=http://doc.silverstripe.com/doku.php?id=tutorial:4-site-search]4-site-search[/url]
But there are some problems:
1) The content is saved by TinyMCE using HTML. The main language is spanish, so if i want to found comisiÃƒÂ³n the content with the word comisiÃƒÂ³n is not finded.
2) To solve this I decided to change the code in sapphire/search/SearchForm.php in function getResults from
$keywords = $_REQUEST['Search'];
$keywords = $_REQUEST['Search']; $keywords .= " OR " . htmlentities($keywords);
3) If i try to search when i am not in the main language in the site, it gives me an error... I have solved this with [url=http://open.silverstripe.com/ticket/2267]this pacth[/url].
4) The problem now is that the seach only finds in the main site language (SiteTree_Live). If I write content in a second language and I try to find it, it does not find it. I think that the correct behaviour should be to search the content in the current language.
If this problem only mine? The search is not tested in SS?
Thanks in advance.