i use solr php client.
but when i use the search method:
$params = array('qf' => 'threads.title posts.body', 'defType' => dismax);
$results = $solr->search($query, $offset, $limit, $params);
when i use defType = dismax it searches $query = 'Peter Jakob' as the whole string instead of Peter OR Jakob. it works fine when i dont use the $params. But main problem is i have to use dismax to be able to search in multiple fields.
How can i make solr php client to know that i have to search in multiple fields and for multiple values (OR)?
Here is my search handler im using:
<requestHandler name="standard" class="solr.SearchHandler" default="true">
<!-- default values for query parameters -->
<lst name="defaults">
<str name="echoParams">explicit</str>
<!--
<int name="rows">10</int>
<str name="fl">*</str>
<str name="version">2.1</str>
-->
</lst>
</requestHandler>