Advanced Metadata Query

This operation enables you to query metadata based on custom query conditions. The query conditions support the AND and OR relationships between metadata fields, making the query more flexible, complex, and accurate.

Procedure

  1. Choose Monitor > Data Pilot > SmartIndexing.
  2. Click Query.

    The Query Metadata page is displayed.

  3. Click the Advanced Query tab.
  4. Set query conditions in a condition group. You can add multiple condition groups.

    1. Table 1 describes the parameters that can be set for each condition group.
      Name, Path, Type, Extended File Attribute, Custom Object Metadata, and Custom Tag support precise query and prefix-based fuzzy query. Owning Account and Namespace only support precise query.
      Table 1 Condition group parameters

      Parameter

      Description

      Name

      Indicates the name of a file or object, excluding the path.

      Owning Account

      Indicates the name of the account to which the file or object belongs.

      Namespace

      Indicates the namespace to which a file or object belongs.

      Path

      Indicates the path of a file, object, or directory.

      Type

      Indicates the type of a file or directory.

      • When you query metadata by file type, enter the suffix corresponds to a file type, for example, pdf.
      • When you query metadata by directory, enter directory.

      Size

      Indicates the size of a file or object.

      Unit: byte

      Last Modified

      Time when a file or an object was last modified.

      Created

      Indicates the time when a file or object is created.

      ID of Owning UNIX User

      Indicates the UNIX user ID when the NFS protocol is used.

      ID of Owning UNIX User Group

      Indicates the UNIX user group ID when the NFS protocol is used.

      Extended File Attribute

      Indicates the xattr attribute of a file.

      You can use the xattr API to set the custom metadata of a file. This condition is used to query the file list by custom metadata.

      Custom Object Metadata

      Indicates the custom object metadata.

      When uploading an object, you can customize the metadata header of the object. This condition is used to query the object list by custom metadata.

      Custom Tag

      Indicates the custom label of an object.

    2. Click Add Condition to add a condition in the current condition group.
    3. (Optional) Click to remove an unnecessary condition.
    4. In Condition Relationship, select the relationship between conditions.
      • And: The relationship between conditions is AND. That is, the filtered files or objects must meet all conditions.
      • Or: The relationship between conditions is OR. That is, the filtered files or objects meet one of the conditions.

  5. (Optional) Add a condition group.

    1. Click Add Condition Group.
    2. (Optional) To remove a condition group that is no longer needed, click Remove in the upper right corner of the area where the condition group is located.
    3. In Condition Group Relationship, select the relationship between condition groups.
      • And: The relationship between the current condition group and other condition groups is AND. That is, the filtered files or objects must meet both the current condition group and other condition groups.
      • Or: The current condition group is in the OR relationship with other condition groups. That is, the filtered files or objects meet the current condition group or another condition group.

  6. (Optional) Click Reset to clear all configured parameters.
  7. Click OK.

    A maximum of 10,000 results can be queried.