Permalink
Browse files

Fix a SPARQL query that was missing a distinct clause. This missing c…

…lause was causing some unexpected (count) results which was leading to trigger the 311 CRUD: Read error when we were indexing content in Solr from Virtuoso.
  • Loading branch information...
1 parent c5ce3ae commit 719b4a776d43345e73847e6c785a4e9964b83a1c @fgiasson fgiasson committed Jan 22, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 StructuredDynamics/osf/ws/crud/create/interfaces/DefaultSourceInterface.php
@@ -243,7 +243,7 @@ public function processInterface()
// update the Solr index of an unpublished record
$subjectsFilter = rtrim($subjectsFilter, ',');
- $query = "select count(?s) as ?nb
+ $query = "select count(distinct ?s) as ?nb
from <" . $this->ws->dataset . ">
where
{

0 comments on commit 719b4a7

Please sign in to comment.