Defines a semantic search operation.
| JSON representation |
|---|
{ "searchText": string, "searchField": string, "taskType": enum ( |
| Fields | |
|---|---|
searchText |
Required. The query text, which is used to generate an embedding according to the embedding model specified in the collection config. |
searchField |
Required. The vector field to search. |
taskType |
Optional. The task type of the query embedding. |
outputFields |
Optional. The fields to return in the search results. |
filter |
Optional. A JSON filter expression, e.g. {"genre": {"$eq": "sci-fi"}}, represented as a google.protobuf.Struct. |
searchHint |
Optional. Sets the search hint. If no strategy is specified, the service will use an index if one is available, and fall back to KNN search otherwise. |
topK |
Optional. The number of data objects to return. |