Basic Metadata Query

The section describes how to search for files or objects whose metadata contains both the specified system metadata fields and custom metadata fields.

Procedure

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

    The Query Metadata page is displayed.

  3. Click the Basic Query tab and set basic query parameters. Table 1 describes related parameters.

    • In a non-domain controller scenario, the user/user group name and ID must be the same as those on the client.
    • In a domain controller scenario, you are not advised to create a user or user group. If you want to create a user or user group, the user/user group name and ID must be the same as those on the client.
    • It is recommended that the names and IDs of different types of users or user groups be different. For example, the names and IDs of local UNIX authentication users/user groups, LDAP domain users/user groups, and NIS domain users/user groups are different.
    Table 1 Basic metadata query parameters

    Parameter

    Description

    Owning Account

    Name of an account to which a file or object belongs. You can select 1 to 10 accounts. The relationship between the accounts is OR.

    NOTE:
    • When querying user names or user group names, select at least one account and a maximum of 10 accounts.
    • If the owning account is system and the root user or user group is used as the search condition, you need to manually create the local root authentication user or user group of UNIX. Otherwise, no data will be found. For details, see Configuring and Managing UNIX Users.

    Namespace

    Namespace to which a file or object belongs. You can select multiple namespaces. The relationship between the namespaces is OR.

    Path

    Path of a file, object, or directory.

    The system performs prefix-based fuzzy query according to the entered path.

    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.

    Name

    Name of a file or object.

    The system performs prefix-based fuzzy search according to the entered name. For example, if you enter abc, the system queries all files or objects whose names start with abc.

    UNIX User ID

    UNIX user ID when the NFS protocol is used.
    • Supports local UNIX authentication users, LDAP domain users, and NIS domain users.
    • For Windows or object users, you need to configure the mappings between them and UNIX users and use the corresponding UNIX user IDs to perform queries.

    UNIX User

    UNIX user name when the NFS protocol is used.
    • Supports local UNIX authentication users, LDAP domain users, and NIS domain users.
    • For Windows or object users, you need to configure the mappings between them and UNIX users and use the corresponding UNIX user names to perform queries.
    • You are advised to set different names for users of different domain controllers. Otherwise, query results will be inaccurate.

    UNIX User Group

    UNIX user group name when the NFS protocol is used.
    • Supports local UNIX authentication user groups, LDAP domain user groups, and NIS domain user groups.
    • For Windows or object users, you need to configure the mappings between them and UNIX users and use the corresponding UNIX user group names to perform queries.
    • You are advised to set different names for user groups of different domain controllers. Otherwise, query results will be inaccurate.

    Last Modified

    Time when a file, object, or directory is last modified.

    Last Accessed

    Time when a file, object, or directory is last accessed.

    NOTE:

    This parameter requires the Automatic Update of Atime function to be enabled for the corresponding namespace. After the function is enabled, system performance will be affected.

    Size

    Size of a file or object.

    Unit: byte

    Custom Metadata

    In addition to the preceding system metadata, you can also query metadata by custom metadata field. Click or to add or remove a custom metadata field.

    When uploading a file, metadata of the file is recorded in the format of Key-Value. Therefore, enter a key and its corresponding value in this parameter.

    [Example]

    Key = owner, Value = Zhang San

    Configure at least one of the preceding parameters. The relationship between the preceding parameters is AND. That is, the filtered metadata is the intersection of the specified conditions.

    For example, if Owning Account is test and Type is txt, the filtered files or objects must meet the two conditions.

  4. (Optional) Click Reset to clear all configured parameters.
  5. Click OK.

    A maximum of 10,000 results can be queried.