From 7ae7f704cefd43f498a8880a677f861bcf188363 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Tue, 5 Dec 2017 16:07:49 +1300 Subject: [PATCH] FIX Double escape namespace separators in class names when excluding fields --- src/Solr/SolrIndex.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Solr/SolrIndex.php b/src/Solr/SolrIndex.php index 7ca2bce..7e8db82 100644 --- a/src/Solr/SolrIndex.php +++ b/src/Solr/SolrIndex.php @@ -941,7 +941,10 @@ abstract class SolrIndex extends SearchIndex { $fq = array(); foreach ($searchQuery->exclude as $field => $values) { - $excludeq = array(); + // Handle namespaced class names + $field = $this->sanitiseClassName($field); + + $excludeq = []; $missing = false; foreach ($values as $value) {