AISearch allows you to quickly search for target objects among a large number of objects based on conditions, such as semantic content, object metadata, multimedia metadata, object ETags and tags, and custom metadata. AISearch improves search efficiency.
Scenarios
Personal and enterprise document search
You can use AISearch to directly search for documents based on specific semantic content, such as "ERP usage", "IT maintenance process", "2024 business operation analysis", and other keywords. This allows you to conveniently search for documents and improve work efficiency.
Multimedia search
AISearch allows you to integrate fast and efficient media data search and retrieval capabilities into your multimedia networking applications. For example, you upload a large number of images to a social networking application. You can directly search for images based on semantic content, such as "spring outing in the countryside", "Spring Festival reunion", "my oceanic experiences", and other keywords, which makes your application easy and fun to use.
Online storage
Many online storage services provide scalar-based object search based on attributes such as object names, creation time, and extensions. AISearch allows you to efficiently search for specific types of data, such as semantically related documents and photos.
Video surveillance
AISearch allows you to search for surveillance videos based on semantic keywords, such as "outdoor snow surveillance video" and "orchard on sunny days".
Notes
Supported regions
AISearch is supported for buckets in the China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hangzhou), China (Shanghai), China (Shenzhen), China (Guangzhou), and China (Chengdu) regions.
Object quantity
AISearch is supported only for a bucket that contains a maximum of 10 billion objects. If the number of objects in a bucket does not exceed 100 million, you can directly enable AISearch. If the number of objects in a bucket exceeds 100 million, contact technical support.
Billing rules
AISearch is in public preview, during which you are free to use it. After public review, you will be charged for metadata management and metadata retrievals. For more information about the billable items, see Data indexing fees.
In addition to the aforementioned billable items, you are charged additional fees based on the number of API operation calls when you use AISearch. The following table describes the related API operations:
Description
API
Number of API operation calls
Build indexes for objects in buckets
HeadObject and GetObject
One call for each object
Objects in buckets are tagged
GetObjectTag
One call for each tagged object
Objects in buckets contain custom metadata
GetObjectMeta
One call for every object that contains custom metadata
Symbolic links in buckets
GetSymlink
One call for each symbolic link object
Scan the bucket
ListObjects
One call for every batch of 1,000 files that are scanned
For more information, see API operation calling fees.
Time required for indexing
After you enable AISearch, OSS creates an index. The time required to create the index is proportional to the number of objects stored in the bucket. If a larger number of objects are stored in the bucket, a longer period of time is required to create the index. In most cases, the first time you create an index for 10 million objects, approximately 1 hour is required. The first time you create an index for 1 billion objects, approximately 1 day is required. The first time you create an index for 10 billion objects, approximately 2 to 3 days are required. The preceding time is provided only for reference.
Multipart upload
If a bucket contains objects that are uploaded by using multipart upload, the search results include only the complete objects combined by calling the CompleteMultipartUpload operation. Parts that are uploaded by multipart upload tasks that are initiated but are not completed or canceled are not included in the search results.
Methods
Use the OSS console
Use the OSS API
Search conditions and search result settings
Search condition settings
The following table describes all search conditions. You can specify one or more search conditions based on your business requirements.
Search result settings
You can sort the search results and view statistics on search results based on specific conditions.
Object Sort Order: You can sort the search results in the Ascending, Descending, or Default order based on the Last Modified Time, Object Name, and Object Size based on your business requirements.
Data Aggregation: You can view statistics on the search results based on specific conditions, such as de-duplication, group count, maximum, minimum, average, and sum. This facilitates efficient data analysis and management.
FAQ
Why am I unable to immediately search for an object after I upload the object?
After you upload an object, a specific amount of time is required to create an index for the object. In this case, the search results cannot ensure strong consistency, and you are unable to immediately search for the object. Wait for several minutes and search for the object again.