- streamlined way of managing query parameters

This commit is contained in:
Gilles Crettenand
2015-06-15 12:12:45 +02:00
parent c967a3ec1d
commit d797f62c47
2 changed files with 19 additions and 15 deletions

View File

@@ -41,7 +41,7 @@ class BookSearch
{
if(count($texts) > 0) {
$texts = array_map(array('SolrUtils', 'escapeQueryChars'), $texts);
$query = sprintf('%s:(%s)', $field, implode(' OR ', $texts));
$query = sprintf('%s:("%s")', $field, implode('" OR "', $texts));
$this->addQuery($query, null, false);
}
}