|
|
|
@ -29,10 +29,13 @@ class BookSearch
|
|
|
|
$this->query->addParam('q.op', 'AND');
|
|
|
|
$this->query->addParam('q.op', 'AND');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function addQuery($queryText, $queryField = '')
|
|
|
|
public function addQuery($queryText, $queryField = null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ($queryField != '')
|
|
|
|
$queryText= SolrUtils::escapeQueryChars($queryText);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (strlen($queryField) > 0) {
|
|
|
|
$queryText = "$queryField:\"$queryText\"";
|
|
|
|
$queryText = "$queryField:\"$queryText\"";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$this->queryParts[] = $queryText;
|
|
|
|
$this->queryParts[] = $queryText;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|