Advanced Metadata Query

The section describes how 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

      Name of a file or object, excluding the path.

      Owning Account

      Name of the account to which a file or object belongs.

      Namespace

      Namespace to which a file or object belongs.

      Path

      Path of a file, object, or directory.

      Type

      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

      Size of a file or object.

      Unit: byte

      Last Modified

      Time when a file or an object was last modified.

      Created

      Time when a file or object is created.

      ID of Owning UNIX User

      UNIX user ID when the NFS protocol is used.

      ID of Owning UNIX User Group

      UNIX user group ID when the NFS protocol is used.

      Extended File Attribute

      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

      Custom metadata of an object.

      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

      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.