Skip to main content

Intro group exercise

Here's a gentle first exercise to get us started with the playground.

We're going to work through this one together as a group.

  1. Navigate to the πŸ”— Playground link.
  2. Press "Run"
  3. Notice the empty array [] of results

All exercises in this workshop will be in this format, with a πŸ”— Playground link, followed

πŸ€” Exercise: Fix me​

πŸ”— Playground link: Exercise: Fix me

You'll see an index configuration and an aggregation pipeline stage that hasn't been introduced yet, but no worries - we'll get there next. See if you can solve it with what you already know or expect.

The objective with this exercise is to adjust the FIX_ME in the $search aggregation pipeline stage so that the document (in the Data Source pane) matches the query and appears in the Results pane.

Playground intro exercise

Here's a solution...

You can copy this pipeline and paste it in to the playground's Query panel and press Run.

[
{
$search: {
index: "default",
text: {
query: "search",
path: "title"
}
}
}
]
There are other possible solutions too, such as...

atlas or fundamentals or other case variations of any title field words