Skip to content

Commit

Permalink
Add apostrophe to removed characters for autocomplete (#1380)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Walter authored and demiankatz committed Jun 12, 2019
1 parent 08417d4 commit edf6a0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Autocomplete/Solr.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ protected function initSearchObject()
protected function mungeQuery($query)
{
// Modify the query so it makes a nice, truncated autocomplete query:
$forbidden = [':', '(', ')', '*', '+', '"'];
$forbidden = [':', '(', ')', '*', '+', '"', "'"];
$query = str_replace($forbidden, " ", $query);
if (substr($query, -1) != " ") {
$query .= "*";
Expand Down

0 comments on commit edf6a0e

Please sign in to comment.