1
Connect to your cluster using mongosh
.
Open mongosh
in a terminal window and connect to your
cluster. For detailed instructions on connecting, see
Connect via mongosh
.
2
Use the sample_airbnb
database.
Run the following command at mongosh
prompt:
use sample_airbnb
switched to db sample_airbnb
3
Run the following Atlas Search queries using the operator for which you created the index.
If you created an index that uses dynamic mappings, you can query the
airbnb_mat_view
collection using the queryString
operator. If you created an index that uses static mappings, you can
query the airbnb_mat_view
collection using the
autocomplete operator.