Documentation

SearchRequest
in package

Table of Contents

$searchQuery  : SearchQuery|null
$vectorSearch  : VectorSearch|null
__construct()  : mixed
Constructs a SearchRequest.
build()  : SearchRequest
Static helper to keep code more readable
searchQuery()  : SearchRequest
Sets a SearchQuery in the SearchRequest, if one is not already set.
vectorSearch()  : SearchRequest
Sets a VectorSearch in the SearchRequest, if one is not already set.

Properties

Methods

__construct()

Constructs a SearchRequest.

public __construct(SearchQuery|VectorSearch $searchQueryOrVectorSearch) : mixed

Use or to combine a SearchQuery with a VectorQuery.

Parameters
$searchQueryOrVectorSearch : SearchQuery|VectorSearch
Tags
since
4.1.7

Note: VectorSearch has stability @UNCOMMITTED

Return values
mixed

        

Search results