Image search
The AnalyticDB for MySQL image search service supports search by image, search by text, and tag filtering for e-commerce, content recommendation, and security applications.
The image search feature is in private preview. To use it, submit a ticket or contact technical support.
Key features
Multi-mode search engine
The image search service provides three working modes. Specify a mode when creating an image library. The mode cannot be changed after creation.
|
Mode |
Use cases |
Core capabilities |
|
Item Search ( |
E-commerce product retrieval, fashion design |
Automatically identifies and extracts item-level embeddings for precise item matching. |
|
General Search ( |
Content recommendation, image library management |
Generates full-image semantic embeddings. Supports both search by image and search by text. |
|
Adaptive Search ( |
Security surveillance, identity recognition |
Uses dual-path extraction: optimizes facial features for face images and full-image semantics for non-face images. |
Note: The service automatically converts images and text into embeddings during import and retrieval, then uses vector similarity for semantic matching. You do not need to call an embedding model.
Multiple image libraries
Create multiple image libraries with isolated data for multi-tenant SaaS scenarios.
Feature overview
|
Feature |
Description |
|
Create, query, and delete image libraries. Specify a working mode (Item Search, General Search, or Adaptive Search) at creation. The mode cannot be changed later. |
|
|
Import images into a library. Supports single synchronous and batch asynchronous imports from OSS JSONL files. Custom tags can be included for filtering. |
|
|
Retrieve similar images from an image library.
|
API overview
All APIs use the prefix: /api/v1/operators/image-search
Image library management
|
API |
Method |
Path |
|
Create image library |
POST |
|
|
List image libraries |
GET |
|
|
Delete image library |
POST |
|
Image import
|
API |
Method |
Path |
|
Single import (synchronous) |
POST |
|
|
Batch import (asynchronous) |
POST |
|
|
Query batch import task status |
GET |
|
Image retrieval
|
API |
Method |
Path |
|
Search by image |
POST |
|
|
Search by text |
POST |
|
Common response structure
All APIs return a unified JSON structure:
{
"status": "SUCCESS",
"message": null,
"data": { ... }
}
|
Field |
Type |
Description |
|
|
string |
Business status code. |
|
|
string / null |
Status description. |
|
|
object / null |
Business data payload. |
Standard HTTP status codes (200, 400, 403, 404, 409, 500) provide coarse-grained status. The status and message fields provide fine-grained error details.
Use cases
E-commerce product retrieval
Build a "find similar by photo" feature. When a user uploads a product photo, the system identifies the main object (such as a dress or shoes), retrieves visually similar items, and supports filtering by tags like color and size.
Content recommendation
On a content platform, extract semantic features from viewed images to retrieve similar content and rank results by user profile.
Image asset management
Batch import historical images with categorical tags. Find assets through text descriptions or example images.
Limitations
|
Item |
Description |
|
Working mode |
The working mode cannot be changed after creation. To switch modes, delete the library and create a new one. |
|
Number of image libraries |
A single AnalyticDB for MySQL instance supports up to 5 image libraries. To request an increase, contact technical support. |
|
Search by text |
Only available for image libraries in |