Skip to content

Commit

Permalink
Merge pull request #48 from Meg528/patch-21
Browse files Browse the repository at this point in the history
Update 10-advanced-exercises.mdx
  • Loading branch information
sis0k0 authored Sep 18, 2024
2 parents 040dcb6 + 5ceefca commit 9f34731
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/5-search-operators/10-advanced-exercises.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 🦸 Advanced Exercises

:::info
Extra activity, do it if you have extra time or are following at home, these won't be covered during the hands-on Lab
Extra activity! Do it if you have extra time or are following along at home. These won't be covered during the hands-on lab.
:::

## Promote shorter books
Expand Down Expand Up @@ -62,16 +62,16 @@ public async searchBooks(query: string): Promise<Book[]> {
</div>
</details>
Choose your favourite method to build aggregation pipelines and try to solve the following exercises.
Choose your favorite method to build aggregation pipelines and try to solve the following exercises.
## Most available book of the month books
Build a search aggregation stage that will promote the books of the month, and will return the books with the most copies available first.
Build a search aggregation stage that will promote the books of the month and return the books with the most copies available first.
## Most prolific pooh author
Find out which author has written the most books that contains the word "pooh" (we're talking about the bear here) in the title or in the synopsis.
Find out which author has written the most books that contain the word "pooh" (we're talking about the bear here) in the title or synopsis.
## Assume typos, but still find the matches
## Assume typos but still find the matches
Find books that match a user query, but also return books that match with a typo. These books should be returned after the books that match the query.
Find books that match a user query, but also return books that match with a typo. These books should be returned after the books that match the query.

0 comments on commit 9f34731

Please sign in to comment.