I have built the search function following the instructions in 4-site-search
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'];
with the idea to search twice. Now it searches in content... but also searched in sites where is not tha word :-D. It also searches in files (and i donÃ‚Â´t know how it does it) and gives me as result, but the word is not in...
$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 this pacth.
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.