Answer the question
In order to leave comments, you need to log in
Why doesn't Sphinx search through indexed tables?
I am adding a new indexing section. When indexing, the sphinx finds and inteks
indexing index 'blog'...
collected 25 docs, 0.2 MB
sorted 0.0 Mhits, 100.0% done
total 25 docs, 183834 bytes
total 0.008 sec, 20641589 bytes/sec, 2807.09 docs/sec
protected $_searchSections = [
'news',
'blog',
'publications',
'seminars'
];
$request = $this->getRequest();
$query = $request->getQuery('q');
$page = $request->getQuery('p', 1);
$adapter = $this->_getSearchPaginatorAdapter();
$adapter->setQuery($query);
$adapter->setPublishGroupIds($this->_getPublishGroupIds());
$adapter->setSections($this->_searchSections);
$adapter->setSortCallback(
function ($e1, $e2) {
return $e2->getPublishDate() - $e1->getPublishDate();
}
);
$paginator = new Paginator($adapter);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question