@@ -21,6 +21,7 @@ class SearchRequest extends Request
2121 const bool APPEND_REQUEST_SECRET_DEFAULT = false ;
2222 const bool RETURN_HIGHLIGHTED_TEXT_DEFAULT = true ;
2323 const bool RETURN_THUMBNAIL_HITS_DEFAULT = false ;
24+ const string EXPAND_ORIGINAL_STORAGE_PATH = 'originalStoragePath ' ;
2425
2526
2627 public function __construct (
@@ -34,7 +35,8 @@ public function __construct(
3435 readonly bool $ appendRequestSecret = self ::APPEND_REQUEST_SECRET_DEFAULT ,
3536 readonly bool $ returnHighlightedText = self ::RETURN_HIGHLIGHTED_TEXT_DEFAULT ,
3637 readonly bool $ returnThumbnailHits = self ::RETURN_THUMBNAIL_HITS_DEFAULT ,
37- readonly string $ json = ''
38+ readonly string $ json = '' ,
39+ readonly array $ expand = [],
3840 ) {
3941 parent ::__construct ($ assetsClient );
4042 }
@@ -89,6 +91,10 @@ protected function toArray(): array
8991 $ params ['metadataToReturn ' ] = implode (', ' , $ this ->metadataToReturn );
9092 }
9193
94+ if (count ($ this ->expand ) > 0 ) {
95+ $ params ['expand ' ] = implode (', ' , $ this ->expand );
96+ }
97+
9298 if (count ($ this ->facets ) > 0 ) {
9399 $ params ['facets ' ] = implode (', ' , $ this ->facets );
94100 }
0 commit comments