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
$searchQuery
private
SearchQuery|null
$searchQuery
= null
$vectorSearch
private
VectorSearch|null
$vectorSearch
= null
Methods
__construct()
Constructs a SearchRequest.
public
__construct(SearchQuery|VectorSearch $searchQueryOrVectorSearch) : mixed
Parameters
- $searchQueryOrVectorSearch : SearchQuery|VectorSearch
Tags
Return values
mixed —build()
Static helper to keep code more readable
public
static build(SearchQuery|VectorSearch $searchQueryOrVectorSearch) : SearchRequest
Parameters
- $searchQueryOrVectorSearch : SearchQuery|VectorSearch
Tags
Return values
SearchRequest —Note: VectorSearch has stability @UNCOMMITTED
searchQuery()
Sets a SearchQuery in the SearchRequest, if one is not already set.
public
searchQuery(SearchQuery $searchQuery) : SearchRequest
Parameters
- $searchQuery : SearchQuery
Tags
Return values
SearchRequest —vectorSearch()
Sets a VectorSearch in the SearchRequest, if one is not already set.
public
vectorSearch(VectorSearch $vectorSearch) : SearchRequest
Parameters
- $vectorSearch : VectorSearch