Skip to content

Commit

Permalink
Merge pull request #130 from seesmith/master
Browse files Browse the repository at this point in the history
LUC023A-70 Archives Space duplicate records
  • Loading branch information
seesmith authored Jul 10, 2018
2 parents 68c9ddb + 83f2d86 commit 7a1d1b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions application/libraries/solr/solr_client_archivesspace_1.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ function simpleSearch($q = '*:*', $offset = 1, $fq = array(), $operator = 'OR',
}
}
}
//-id:*pui
$url .= '&fq=-id:*pui';

$url .= '&fq=types:"archival_object"+types:"resource"';
if (count($fq) > 0) {
foreach ($fq as $value)
Expand Down Expand Up @@ -278,7 +281,7 @@ function simpleSearch($q = '*:*', $offset = 1, $fq = array(), $operator = 'OR',

$url .= '&spellcheck=true&spellcheck.collate=true&spellcheck.onlyMorePopular=false&spellcheck.count=5';
$url .= '&spellcheck.dictionary=' . $this->dictionary;
// print_r('simple search '. $url);
//print_r('simple search '. $url);

$solr_xml = file_get_contents($url);
$search_xml = @new SimpleXMLElement($solr_xml);
Expand Down Expand Up @@ -1191,6 +1194,3 @@ public function getResultsFromSolr($recent_xml, $title)


}



0 comments on commit 7a1d1b7

Please sign in to comment.