This tutorial describes how to create an index that uses a
language analyzer and perform a
multilingual search against the
sample_mflix.movies collection. It
takes you through the following steps:
Set up an Atlas Search index with dynamic mapping for the
sample_mflix.moviescollection. You can apply the
lucene.italianlanguage analyzer or the
lucene.englishlanguage analyzer for indexing the
fullplotfield. Atlas Search uses the default
lucene.standardanalyzer for all the other fields that it dynamically indexes in the collection.
Run an Atlas Search compound query against the
genresfields in the
Before you begin, ensure that your Atlas cluster meets the requirements described in the Prerequisites.
In this section, you will create an Atlas Search index on the
field in the
If it is not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.
If it is not already displayed, select your desired project from the Projects menu in the navigation bar.
Click your cluster's name.
Click the Search tab.
In the Index Name field, enter
If you name your index
default, you don't need to specify an
indexparameter when using the $search pipeline stage. Otherwise, you must specify the index name using the
In the Database and Collection section, find the
sample_mflixdatabase, and select the
➤ Use the Select your language drop-down menu to set the language of the example in this section.
You can use the compound operator to combine two or more
operators into a single query. In this section, connect to your Atlas
cluster and the run the sample query against the
sample_mflix.movies collection using the