Commit 44d58ac6 authored by Gasol Wu's avatar Gasol Wu

separate fl and mlt.fl

parent 6a6c640e
......@@ -60,7 +60,7 @@ class Solarium_Client_RequestBuilder_MoreLikeThis extends Solarium_Client_Reques
$request->addParam('q', $query->getQuery());
$request->addParam('mlt.match.offset', $query->getStart());
$request->addParam('rows', $query->getRows());
$request->addParam('mlt.fl', implode(',', $query->getFields()));
$request->addParam('fl', implode(',', $query->getFields()));
$request->addParam('wt', 'json');
$request->addParam('mlt.interestingTerms', $query->getInterestingTerms());
$request->addParam('mlt.match.include', $query->getMatchInclude());
......
......@@ -84,7 +84,8 @@ class Solarium_Query_MoreLikeThis extends Solarium_Query
'query' => '*:*',
'start' => 0,
'rows' => 10,
'mlt.fl' => '*,score',
'fl' => '*,score',
'mlt.fl' => 'text',
'mlt.interestingTerms' => 'none',
'mlt.match.include' => 'false',
);
......
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