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.
- Navigate to the
π Playground link
. - Press "Run"
- 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 meYou'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.
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