- remove escaping as it only allows for exact matches
This commit is contained in:
@@ -52,13 +52,11 @@ class BookSearch
|
|||||||
$queryText = \SolrUtils::escapeQueryChars($queryText);
|
$queryText = \SolrUtils::escapeQueryChars($queryText);
|
||||||
}
|
}
|
||||||
|
|
||||||
$queryText = "\"$queryText\"";
|
|
||||||
|
|
||||||
if (strlen($queryField) > 0) {
|
if (strlen($queryField) > 0) {
|
||||||
$queryText = "$queryField:$queryText";
|
$queryText = "$queryField:\"$queryText\"";
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->queryParts[] = "$queryText";
|
$this->queryParts[] = $queryText;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addSortField($field, $order = \SolrQuery::ORDER_DESC)
|
public function addSortField($field, $order = \SolrQuery::ORDER_DESC)
|
||||||
|
|||||||
Reference in New Issue
Block a user