From 915219b6c4ff43880b855a32b1f11875997a40d0 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Fri, 27 Sep 2013 10:45:22 +1200 Subject: [PATCH] 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. --- code/solr/SolrIndex.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/solr/SolrIndex.php b/code/solr/SolrIndex.php index 042e3a6..14da30d 100644 --- a/code/solr/SolrIndex.php +++ b/code/solr/SolrIndex.php @@ -338,7 +338,7 @@ abstract class SolrIndex extends SearchIndex { $q[] = '+('.implode(' OR ', $searchq).')'; } else { - $q[] = '+'.$part; + $q[] = '+'.$part.$fuzzy; } } }