@@ -111,6 +111,13 @@ class SearchQuery
111111
112112 private ?FederationOptions $ federationOptions = null ;
113113
114+ private ?bool $ retrieveVectors = null ;
115+
116+ /**
117+ * @var array<string, mixed>|null
118+ */
119+ private ?array $ media = null ;
120+
114121 /**
115122 * @return $this
116123 */
@@ -429,6 +436,36 @@ public function setAttributesToSearchOn(array $attributesToSearchOn): self
429436 return $ this ;
430437 }
431438
439+ public function getRetrieveVectors (): ?bool
440+ {
441+ return $ this ->retrieveVectors ;
442+ }
443+
444+ public function setRetrieveVectors (?bool $ retrieveVectors ): self
445+ {
446+ $ this ->retrieveVectors = $ retrieveVectors ;
447+
448+ return $ this ;
449+ }
450+
451+ /**
452+ * @return array<string, mixed>|null
453+ */
454+ public function getMedia (): ?array
455+ {
456+ return $ this ->media ;
457+ }
458+
459+ /**
460+ * @param array<string, mixed>|null $media
461+ */
462+ public function setMedia (?array $ media ): self
463+ {
464+ $ this ->media = $ media ;
465+
466+ return $ this ;
467+ }
468+
432469 /**
433470 * @return array{
434471 * indexUid?: non-empty-string,
@@ -457,7 +494,9 @@ public function setAttributesToSearchOn(array $attributesToSearchOn): self
457494 * showRankingScoreDetails?: bool,
458495 * rankingScoreThreshold?: float,
459496 * distinct?: non-empty-string,
460- * federationOptions?: array<mixed>
497+ * federationOptions?: array<mixed>,
498+ * retrieveVectors?: bool,
499+ * media?: array<string, mixed>,
461500 * }
462501 */
463502 public function toArray (): array
@@ -490,6 +529,8 @@ public function toArray(): array
490529 'rankingScoreThreshold ' => $ this ->rankingScoreThreshold ,
491530 'distinct ' => $ this ->distinct ,
492531 'federationOptions ' => null !== $ this ->federationOptions ? $ this ->federationOptions ->toArray () : null ,
532+ 'retrieveVectors ' => $ this ->retrieveVectors ,
533+ 'media ' => $ this ->media ,
493534 ], static function ($ item ) { return null !== $ item ; });
494535 }
495536}
0 commit comments