Skip to content

Commit

Permalink
feat: added field 'id' to solr search query
Browse files Browse the repository at this point in the history
  • Loading branch information
sitepark-becker committed Oct 1, 2024
1 parent 9e1dc04 commit 4728f76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Service/Search/SolrSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ private function addRequiredFieldListToSolrQuery(
'url',
'title',
'description',
'id',
'sp_id',
'sp_objecttype',
]);
Expand Down Expand Up @@ -265,7 +266,7 @@ private function buildResult(
$facetGroupList = $this->buildFacetGroupList($query, $result);

return new SearchResult(
total:$result->getNumFound() ?? 0,
total: $result->getNumFound() ?? 0,
limit: $query->limit,
offset: $query->offset,
results: $resourceList,
Expand Down

0 comments on commit 4728f76

Please sign in to comment.