Skip to content

Commit

Permalink
feat: add sp_id to external resources
Browse files Browse the repository at this point in the history
  • Loading branch information
sitepark-veltrup committed Mar 21, 2024
1 parent 24f32ab commit 6bee895
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Service/Search/ExternalResourceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function create(Document $document): Resource

return new Resource(
$location,
'',
$this->getField($document, 'sp_id') ?? '',
$this->getField($document, 'title') ?? '',
'external',
[]
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Search/SolrSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ private function addSortToSolrQuery(
private function addRequiredFieldListToSolrQuery(
SolrSelectQuery $solrQuery
): void {
$solrQuery->setFields(['url']);
$solrQuery->setFields(['url', 'title', 'sp_id']);
}

private function addTextFilterToSolrQuery(
Expand Down

0 comments on commit 6bee895

Please sign in to comment.