Hi,
Just how is the silverstripe search doing it's thing. I went through the tutorial a long time ago and it works OK. But now my client is complaining as the results are:
1. Fairly inaccurate
2. Don't display a first paragraph of content as per the tutorial.
3. Including searches through the entire Upload directory (PDF and Doc). These ones in particular are destroying the look of the result page, as the content returned contains weird spacing.
All I can see in the code is this function in Page.php:
function results($data, $form){
$data = array(
'Results' => $form->getResults(),
'Query' => $form->getSearchQuery(),
'Title' => 'Viva Expeditions Search Results'
);
return $this->customise($data)->renderWith(array('Page_results', 'Page'));
}
Three key questions:
1. How exactly is that code doing the entire search?
2. How do I tell it to stay out of my Uploads directory?
3. I haven't heard a peep about the new search system in 2.3, although I it appears to be built in. Will I have more luck with a 2.2 to 2.3 upgrade? Is there documentation for this if it has changed?
Cheers
Aaron