Skip to content

Commit

Permalink
Merge pull request #51 from Meg528/patch-24
Browse files Browse the repository at this point in the history
Update 3-query.mdx
  • Loading branch information
sis0k0 authored Sep 18, 2024
2 parents 0289a73 + 4d9fbcd commit 88300f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/6-facet/3-query.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

Now that your index is in place, you can query using it.

You will need to use the `$searchMeta` aggregation stage to query your data. You can find more about this stage, and how to use it in the <Link to="https://www.mongodb.com/docs/atlas/atlas-search/query-syntax/#mongodb-pipeline-pipe.-searchMeta">Atlas Search documentation</Link>.
You will need to use the `$searchMeta` aggregation stage to query your data. You can find more about this stage and how to use it in the <Link to="https://www.mongodb.com/docs/atlas/atlas-search/query-syntax/#mongodb-pipeline-pipe.-searchMeta">Atlas Search documentation</Link>.

Now that you have an index on the `genres` and `year` fields, try creating a query that returns the number of books in each genre, for books published in the 2000's.
Now that you have an index on the `genres` and `year` fields, try creating a query that returns the number of books in each genre, for books published in the 2000s.

<details>
<summary>Click to see the answer</summary>
Expand Down

0 comments on commit 88300f2

Please sign in to comment.