Docs Menu
Docs Home
/ /

Set Language Specific Rules for String Comparison

Use the Collation query bar option to specify language-specific rules for string comparison, such as rules for lettercase and accent marks.

Important

Feature unavailable in Flex Clusters

Flex clusters don't support this feature at this time. To learn more, see Atlas Flex Limitations.

1
  1. If it's not already displayed, select the organization that contains your project from the Organizations menu in the navigation bar.

  2. If it's not already displayed, select your project from the Projects menu in the navigation bar.

  3. In the sidebar, click Data Explorer under the Database heading.

    The Data Explorer displays.

Note

You can also go to the Clusters page, and click Data Explorer under the Shortcuts heading.

2
  1. Select the collection.

  2. In the Query Bar, click Options.

  3. Enter the locale field in the collation document to specify the ICU Locale code for the desired language in the Collation field.

    Example

    To use the pinyin variant of the Chinese collation, use the following collation document:

    { "locale" : "zh@collation=pinyin" }

    As you type, the Find button is disabled and the Collation label turns red until a valid query is entered.

  4. Click Find to run the query and view the updated results.

To clear the query bar and the results of the query, click Reset.

Back

Adjust Maximum Time