search
Search a collection with near-object
Performs a similarity search over the objects of a collection, anchored at an existing object: the stored vector of the source object (referenced by id) is searched against the vector index and the closest objects are returned — the source object itself included — each as an envelope of its id, the selected properties, the selected references and, when requested, its retrieval metadata. No query is vectorized, so collections without a vectorizer module are fully searchable.
post/search/{collection}/near-object
Request
- Base URL: https://localhost:8080/v1
- URL: https://localhost:8080/v1/search/{collection}/near-object
- Auth: one of:
- none
- OAuth 2 (implicit, authorization URL http://to-be-configured-in-the-application-config)
Path parameters
collectionstring required
The name (or alias) of the collection to search. A lowercase first letter is normalized to the canonical uppercase form.
Request body
Example request
{
"where": {
"operator": "GreaterThanEqual",
"path": [
"inCity",
"city",
"name"
],
"valueInt": 2000,
"valueNumber": 3.14,
"valueString": "my search term",
"valueText": "my search term",
"valueDate": "TODO",
"valueNumberArray": [
3.14
],
"valueBooleanArray": [
true,
false
],
"valueStringArray": [
"my search term"
],
"valueTextArray": [
"my search term"
]
}
}Response
Search performed successfully.
Changes
No recorded changes to this operation across all 1 revision of this API.