Commit 56fc5377 authored by jelte's avatar jelte

Fix Select Component MoreLikeThis to support boosting multiple fields

parent 17c2d80c
......@@ -68,7 +68,7 @@ class MoreLikeThis implements ComponentRequestBuilderInterface
$request->addParam('mlt.boost', $component->getBoost());
$request->addParam(
'mlt.qf',
count($component->getQueryFields()) ? implode(',', $component->getQueryFields()) : null
count($component->getQueryFields()) ? $component->getQueryFields() : null
);
$request->addParam('mlt.count', $component->getCount());
......
......@@ -67,7 +67,7 @@ class MoreLikeThisTest extends \PHPUnit_Framework_TestCase
'mlt.maxqt' => 4,
'mlt.maxntp' => 5,
'mlt.boost' => 'true',
'mlt.qf' => 'description',
'mlt.qf' => array('description'),
'mlt.count' => 6,
),
$request->getParams()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment