mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
BUG Fixing fuzzy not being applied to standard keyword searches.
At the moment it only applies fuzzy to specific field searches, but not when you haven't specified any fields.
This commit is contained in:
parent
7dd8d888cf
commit
915219b6c4
@ -338,7 +338,7 @@ abstract class SolrIndex extends SearchIndex {
|
|||||||
$q[] = '+('.implode(' OR ', $searchq).')';
|
$q[] = '+('.implode(' OR ', $searchq).')';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$q[] = '+'.$part;
|
$q[] = '+'.$part.$fuzzy;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user