VisualSearchRequestResource
VisualSearchRequestResource models the visual search payload used inside SearchRequest.visualSearch for image/text-driven similarity searches. This resource is defined in src/models/search/visual-search-request-resource.ts.
Class structure
VisualSearchResource(base) - shared visual-search fields (color,type,imageEntityId,text)VisualSearchRequestResource(request) - extends base and addsimage(base64 image hash/string)
Property reference
| TS property | Serialized JSON key | Type | Description |
|---|---|---|---|
color | color | string | Selected color filter for visual search context. |
type | type | VisualSearchType | Strategy used to combine vector and text signals. |
imageEntityId | imageEntityId | number | ID of the asset used as the visual reference image. |
text | text | string | Additional text query prompt to influence results. |
image | image | string | Base64 hash/string of uploaded image used as search input. |
VisualSearchType values
In practical terms:
vector- image/vector similarity onlytext- text intent onlyvector+text- combined relevancevectorOrText- broader matching (either signal can match)vectorAndText- stricter matching (both signals should match)
Example use cases
- Use case: Code
- Find visually similar assets from an uploaded image:
- Hybrid search: image + text intent + color hintTypical use case - a user uploads a reference image and adds text to bias results toward a specific style.:
- Use an existing asset as the reference imageTypical use case - user starts from an already indexed asset in the DAM instead of uploading a new file.:
- Text-first fallback for AI search box behaviorTypical use case - no image available, but still using the same visual-search request shape for text-driven discovery.:
If you have suggestions for improving this article, let us know!