List of fields and operators for AISearch

更新时间:
复制 MD 格式

Lists the fields and operators supported by the OSS AISearch pattern for retrieval.

Supported fields

  • When you use the OSSUserMeta.* field to query objects, replace the asterisk (*) with the key of the user metadata. The key is not case-sensitive, whereas the value is case-sensitive.

    For example, if you want to query objects that contain the x-oss-meta-location=hangzhou user metadata field, set the query condition to {"Field": "OSSUserMeta.x-oss-meta-location", "Value": "hangzhou", "Operation": "eq"}.

  • When you use the OSSTagging.* field to query an object, replace the asterisk (*) with the key of an object tag. Both the keys and values of object tags are case-sensitive.

    For example, if you want to query objects that contain the owner=John tag, set the query condition to {"Field": "OSSTagging.owner", "Value": "John", "Operation": "eq"}.

Category

Field

Description

Is This Field Retrievable

Field in the search results

Semantic content retrieval

Metadata condition (object quantity < 100 million)

Metadata condition (100 million < object quantity < 10 billion)

Basic information

URI

The path of the object.

FileModifiedTime

The time when the object was last modified.

Filename

File Name*

Size

File size*

MediaType

The type of the media.

×

×

ContentType

MIME Type*

×

×

ProduceTime

The time when the object was created.

×

×

LatLong

Longitude and Latitude

×

×

Title

Title

×

×

OSS object information

ObjectACL

Object Access Control

ETag

ETag

OSSCRC64

CRC64

OSSObjectType

The type of the object.

OSSStorageClass

Storage Class

OSSTagging.*

The tags of the object.

OSSTaggingCount

Number of Tags

OSSUserMeta.*

The user metadata.

×

OSSExpiration

The time when the object expires.

×

AccessControlAllowOrigin

The origins from which cross-origin requests are allowed.

×

AccessControlRequestMethod

The allowed methods that are used to send cross-origin requests.

×

ServerSideDataEncryption

Object encryption algorithm

×

ServerSideEncryption

Object encryption methods

×

ServerSideEncryptionCustomerAlgorithm

The server-side encryption algorithm specified by the customer.

×

ServerSideEncryptionKeyId

Server-side encryption key

×

CacheControl

HTTP Cacheability

×

ContentDisposition

HTTP Response Handling

×

ContentEncoding

HTTP Response Encoding

×

ContentLanguage

HTTP Response Language

×

Image information

ImageHeight

The height of the image.

×

×

ImageWidth

The width of the image.

×

×

Video information

VideoHeight

The height of the video.

×

×

VideoWidth

The width of the video.

×

×

VideoStreams.CodecName

Encoder Name

×

×

VideoStreams.Language

Language

×

×

VideoStreams.Bitrate

The bitrate of the video stream.

×

×

×

VideoStreams.FrameRate

Frame rate

×

×

×

VideoStreams.StartTime

Start Time

×

×

×

VideoStreams.Duration

The duration of the video stream.

×

×

×

VideoStreams.FrameCount

The number of video frames.

×

×

×

VideoStreams.BitDepth

Pixel Bit Depth

×

×

×

VideoStreams.PixelFormat

Pixel Format

×

×

×

VideoStreams.ColorSpace

Color Space

×

×

×

VideoStreams.Height

The height of the video resolution.

×

×

×

VideoStreams.Width

The width of the video resolution.

×

×

×

Audio information

AudioStreams.CodecName

Encoder Name

×

×

AudioStreams.Bitrate

The bitrate.

×

×

×

AudioStreams.SampleRate

The sampling rate.

×

×

×

AudioStreams.StartTime

Start Time

×

×

×

AudioStreams.Duration

Duration

×

×

×

AudioStreams.Channels

The number of sound channels.

×

×

×

AudioStreams.Language

Language

×

×

Subtitle information

Subtitles.CodecName

Encoder Name

×

×

Subtitles.Language

The language of the subtitle.

×

×

Subtitles.StartTime

Start time

×

×

×

Subtitles.Duration

The duration of the subtitle stream.

×

×

×

Media information

Bitrate

The bitrate.

×

×

Artist

The artist.

×

×

AlbumArtist

The artist of the album.

×

×

Composer

The composer.

×

×

Performer

The performer.

×

×

Album

Collection

×

×

Duration

The duration of the media.

×

×

Geographic information

Addresses.AddressLine

The full address.

×

×

Addresses.City

The city.

×

×

Addresses.Country

The country.

×

×

Addresses.District

The district.

×

×

Addresses.Language

The language of the address.

×

×

Addresses.Province

The province.

×

×

Addresses.Township

Township

×

×

Operators supported by fields

  • Fields support the following query operators: eq (equal to), gt (greater than), gte (greater than or equal to), lt (less than), lte (less than or equal to), match-phrase (string query), prefix (prefix query), nested (logical condition queries within the same object when the data type of a field is ARRAY), and exist (exists query).

  • Fields support the following aggregation operators: min (minimum), max (maximum), average (average), sum (sum), count (count), distinct (distinct count), and group (group count).

Category

Field

Description

Query operator

Aggregation operator

Sort

eq, gt,

gte, lt, lte

match-phrase

prefix

nested

exist

min, max,

sum, average

count

distinct

group

Basic information

URI

The path of the object.

×

×

×

×

FileModifiedTime

The time when the object was last modified.

×

×

×

×

×

Filename

Filename*

×

×

×

Size

File size*

×

×

×

×

MediaType

The type of the media.

×

×

×

×

ContentType

MIME type*

×

×

×

×

ProduceTime

The time when the object was created.

×

×

×

×

×

LatLong

Latitude and longitude

×

×

×

×

×

×

×

Title

Title

×

×

×

OSS object information

ObjectACL

The ACL of the object.

×

×

×

×

ETag

ETag

×

×

×

×

OSSCRC64

CRC64

×

×

×

×

OSSObjectType

The type of the object.

×

×

×

×

OSSStorageClass

Storage Class

×

×

×

×

OSSTagging.*

The tags of the object.

×

×

×

×

×

×

×

OSSTaggingCount

Number of Tags

×

×

×

×

OSSUserMeta.*

Custom Information

×

×

×

×

×

×

×

OSSExpiration

The time when the object expires.

×

×

×

×

×

AccessControlAllowOrigin

The origins from which cross-origin requests are allowed.

×

×

×

×

AccessControlRequestMethod

The allowed methods that are used to send cross-origin requests.

×

×

×

×

ServerSideDataEncryption

Server-side data encryption

×

×

×

×

ServerSideEncryption

Server-Side Encryption

×

×

×

×

ServerSideEncryptionCustomerAlgorithm

The server-side encryption algorithm specified by the customer.

×

×

×

×

ServerSideEncryptionKeyId

Server-Side Encryption Key

×

×

×

×

CacheControl

HTTP Caching

×

×

×

×

ContentDisposition

HTTP Response Handling

×

×

×

×

ContentEncoding

The content encoding format of the object when the object is downloaded.

×

×

×

×

ContentLanguage

Response Language

×

×

×

×

Image information

ImageHeight

The height of the image.

×

×

×

×

ImageWidth

The width of the image.

×

×

×

×

Video information

VideoHeight

The height of the video.

×

×

×

×

VideoWidth

The width of the video.

×

×

×

×

VideoStreams.CodecName

Encoder Name

×

×

×

×

×

×

VideoStreams.Language

Language

×

×

×

×

×

×

VideoStreams.Bitrate

The bitrate of the video stream.

×

×

×

×

×

×

×

×

×

×

VideoStreams.FrameRate

Frame Rate

×

×

×

×

×

×

×

×

×

×

VideoStreams.StartTime

Start Time

×

×

×

×

×

×

×

×

×

×

VideoStreams.Duration

Duration

×

×

×

×

×

×

×

×

×

×

VideoStreams.FrameCount

The number of video frames.

×

×

×

×

×

×

×

×

×

×

VideoStreams.BitDepth

Pixel Bit Depth

×

×

×

×

×

×

×

×

×

×

VideoStreams.PixelFormat

Pixel Format

×

×

×

×

×

×

×

×

×

×

VideoStreams.ColorSpace

Color space

×

×

×

×

×

×

×

×

×

×

VideoStreams.Height

The height of the video resolution.

×

×

×

×

×

×

×

×

×

×

VideoStreams.Width

The width of the video resolution.

×

×

×

×

×

×

×

×

×

×

Audio information

AudioStreams.CodecName

Encoder Name

×

×

×

×

AudioStreams.Bitrate

The bitrate.

×

×

×

×

×

×

×

×

×

×

AudioStreams.SampleRate

The sampling rate.

×

×

×

×

×

×

×

×

×

×

AudioStreams.StartTime

Start Time

×

×

×

×

×

×

×

×

×

×

AudioStreams.Duration

Duration

×

×

×

×

×

×

×

×

×

×

AudioStreams.Channels

The number of sound channels.

×

×

×

×

×

×

×

×

×

×

AudioStreams.Language

Language

×

×

×

×

×

×

Subtitle information

Subtitles.CodecName

Encoder Name

×

×

×

×

×

×

Subtitles.Language

The language of the subtitle.

×

×

×

×

×

×

Subtitles.StartTime

Start Time

×

×

×

×

×

×

×

×

×

×

Subtitles.Duration

Duration

×

×

×

×

×

×

×

×

×

×

Media information

Bitrate

The bitrate.

×

×

×

×

Artist

The artist.

×

×

×

×

AlbumArtist

The artist of the album.

×

×

×

×

Composer

The composer.

×

×

×

×

Performer

The performer.

×

×

×

×

Album

Collection

×

×

×

×

Duration

The duration of the media.

×

×

×

×

Geographic information

Addresses.AddressLine

The full address.

×

×

×

×

×

×

×

Addresses.City

The city.

×

×

×

×

×

×

Addresses.Country

The country.

×

×

×

×

×

×

Addresses.District

The district.

×

×

×

×

×

×

Addresses.Language

The language of the address.

×

×

×

×

×

×

Addresses.Province

The province.

×

×

×

×

×

×

Addresses.Township

Township

×

×

×

×

×

×