Error with distributed index
Closed this issue · 1 comments
kuryha commented
If you use the distributed index, you can get the following error:
Searching index "alias_index_name" for "sphinx_search_string" failed with error "distributed index 'index_name' in multi-index query found
As I understand, it occurs because of excess whitespace in request in Verdet/SphinxSearchBundle/Services/Search/SphinxSearch.php:151:
$indexNames = '';
foreach ($indexes as &$label) {
if (isset($this->indexes[$label])) {
$indexNames .= $this->indexes[$label] . ' ';
}
}
To solve this problem, after above code, i use trim:
$indexNames = trim($indexNames);
Can you change the code?
verdet23 commented
done