diff --git a/app/Http/Controllers/Api/V1/ItemController.php b/app/Http/Controllers/Api/V1/ItemController.php index c264fc52d..e4b24bb1f 100644 --- a/app/Http/Controllers/Api/V1/ItemController.php +++ b/app/Http/Controllers/Api/V1/ItemController.php @@ -41,6 +41,8 @@ class ItemController extends Controller 'box', 'location', 'location.tree', + 'identifier', + 'id', ]; private $rangeables = ['date_earliest', 'date_latest', 'additionals.order']; @@ -303,7 +305,7 @@ protected function createQueryBuilder($q, $filter) if ($q) { $query = Query::multiMatch() - ->fields(['title.*', 'description.*']) + ->fields(['title.*', 'description.*', 'identifier', 'id']) ->query($q); $builder->must($query); }