Hello everybody,
I have some severe problems using the Sphinx module.
First of all, using $SphinxSearchForm in a template doesn't show a search form. I had to build a workaround for the Page_Controller but I don't think that this is the way it should be:
public function SphinxSearchForm() {
$SphinxSearchForm = new SphinxSearchForm($this, 'search');
return $SphinxSearchForm->forTemplate();
}
The major problem that I experienced is that I don't get proper results after sending the search query. I added this method to the Page_Controller:
public function search($arguments) {
$SphinxSearchForm = new SphinxSearchForm($this, 'search');
$SphinxSearchForm->getResults();
}
The error message is "[User Error] no enabled local indexes to search". I searched some Sphinx forums where confusing solutions were posted. As the configuration file for Sphinx is built by SilverStripe, I didn't want to manipulate the sphinx.conf on my own - furthermore I don't have enough knowledge to do so. Perhaps somebody has an idea how to solve this issue.