Skip to content

Commit

Permalink
Merge pull request #10 from sitepark/feature/add-id-to-solr-search
Browse files Browse the repository at this point in the history
feat: added field 'id' to solr search query
  • Loading branch information
sitepark-becker authored Oct 4, 2024
2 parents 5d7e6e9 + 4728f76 commit 537c74a
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 537c74a

Please sign in to comment.