Skip to content

Commit 2161325

Browse files
committed
content updates
1 parent aa484b0 commit 2161325

File tree

8 files changed

+33
-14
lines changed

8 files changed

+33
-14
lines changed

docs/10_About_workshop/2_lets_go.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
# 👐 Our first playground exercise
1+
# 👐 First exercise
22

3-
Here's a gentle first exercise to get you started with the playground. You'll see an index configuration and an aggregation pipeline stage that hasn't been introduced yet, but no worries -
3+
Here's a gentle first exercise to get you started with the playground.
4+
You'll see an index configuration and an aggregation pipeline stage that
5+
hasn't been introduced yet, but no worries -
46
we'll get there next. See if you can solve it with what you already know or expect.
57

68
1. Navigate to this Playground snapshot:
79
https://search-playground.mongodb.com/tools/code-sandbox/snapshots/6782aea0667feaaf06324b87
810
2. Press "Run"
9-
3. Notice the empty `[]` results
11+
3. Notice the empty array `[]` of results
1012

1113
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.
1214

docs/20_Intro_to_Atlas_Search/1_system.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# 📘 Atlas Search architecture
22

3-
Atlas Search provides powerful findability capabilities to your data collections. A flexible index configuration allows mapping and indexing only the fields needed, or dynamically mapping any and all fields supported.
3+
Atlas Search provides powerful findability capabilities to your data collections.
4+
A flexible index configuration allows mapping and indexing only the fields needed,
5+
or dynamically mapping any and all fields supported.
46

57
![big picture](/img/big_picture.png)
68

7-
89
![system diagram](/img/system_diagram.png)
910

1011
Changes to a collection via updates, deletes, or additions are *eventually consistent*, meaning the

docs/30_Index_configuration/2_index_config.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Documents are mapped to an index through a flexible configuration.
1010

1111
## Configuring a real Atlas Search index
1212

13-
* Atlas Search Visual Index Builder or JSON Editor
14-
* via Compass
15-
* Atlas CLI
16-
* Driver commands
13+
* Atlas Search Visual Editor or JSON Editor
14+
* via Compass
15+
* Atlas CLI
16+
* Driver commands

docs/30_Index_configuration/4_geo.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ GeoJSON and Points
44

55
* https://www.mongodb.com/docs/atlas/atlas-search/geoWithin/
66
* https://www.mongodb.com/docs/atlas/atlas-search/geoShape/
7+
* https://www.mongodb.com/docs/atlas/atlas-search/near/
78

89
### geo
910
Dynamic mapping does not support geo-spatial fields, and require a manual/static mapping configuration.

docs/30_Index_configuration/5_nested_docs.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ There are two distinct ways to map and index the contents of nested documents.
66

77
## `document`
88

9-
Default dynamic mapping behavior, flattens nested documents into “arrays” of values on main document
9+
Default dynamic mapping behavior, flattens nested documents into “arrays” of values on main document.
1010

1111
## `embeddedDocuments`
1212

13-
Attribute pattern `elemMatch`-like matching, more nuanced and expensive than document type flattening
13+
Attribute pattern `elemMatch`-like matching, more nuanced and expensive than document type flattening.
14+
See also: https://www.mongodb.com/docs/atlas/atlas-search/field-types/embedded-documents-type/
1415

1516
WARNING: Each nested document mapped as as `embeddedDocuments` counts as an additional "index object".

docs/30_Index_configuration/6_string.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,14 @@ Multiple language example: may not know the language of the content and each doc
3636
Example of being able to do ‘startsWith’ and ‘endsWith’ using wildcard and ‘reverse’ token filter:
3737
https://search-playground.mongodb.com/tools/code-playground/snapshots/6683c8bc4a45448733549bbc
3838

39+
40+
* Text: the heart and soul of your content
41+
* Strings are analyzed, tokenized into terms
42+
* Multiple analyzers can be used for a single string field (multi)
43+
* Terms: words, fragments, atomic searchable units
44+
* An inverted index structure organizes terms lexicographically/alphabetically for quick lookup (aka a dictionary)
45+
* Term statistics:
46+
* Posting list: document identifiers
47+
* Term frequency (tf): how many occurrences of the term per document
48+
* Document frequency (df): how many documents contain the term
49+
* Positions: where in the document does this term occur

docs/40_Analysis/index.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@
44
* Built-in analyzers from lucene.keyword to the others
55
* Labs: lucene.standard, lucene.english, custom analyzer
66

7-
https://www.mongodb.com/docs/atlas/atlas-search/analyzers/
7+
https://www.mongodb.com/docs/atlas/atlas-search/analyzers/
8+
9+
![Visual Editor standard analyzer output](/img/editor_analysis.png)
10+

docs/99_TODO.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
* Fire up ProcessCene and generate some analysis images, etc
33
* Polish headers/footers
44
* Fix publishing to GH Pages
5-
* rename .md's to .mdx's
6-
* rename Playground section to something else - it's the workshop practicals
75
* should completed/solved playgrounds be saved and linked in here as well?
86
* Add coverage of "index objects" counting
97
* Add transition verbiage at the end of each page/section to lead into the next one
8+
* should all links back to mongodb.com have UTMs? How to use the variables?
9+
* border around images? click to make them larger?
1010

1111
Cool Tricks
1212
Which clause matches?

0 commit comments

Comments
 (0)