Skip to content

Commit

Permalink
Merge pull request #19 from emanuelschmoczer/emanuelschmoczer/fix-typos
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
dfreniche authored Dec 12, 2023
2 parents ca06920 + 41374f7 commit 62aa6a6
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/1-full-text-search/2-why-search.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ If they can't find what they are looking for, they will leave your site and go s

# Adding Search capabilities to your site

Ther are many ways to add search capabilities to your site. One of the most popular way is to use an open source search engine like Elasticsearch or Solr. These search engines are very powerful and can be used to index and search millions of documents.
There are many ways to add search capabilities to your site. One of the most popular ways is to use an open source search engine like Elasticsearch or Solr. These search engines are very powerful and can be used to index and search millions of documents.

Behind the hood, both of these search engines use Lucene to index and search documents. Lucene is a Java library that provides a simple API for indexing and searching documents.

Expand Down
2 changes: 1 addition & 1 deletion docs/2-search/2-search-index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 👐 Create an Atlas Search index

To start using Atlas Search, you must configure a search index on your database. Atlas Search indexes categorize data in an easily searchable format and enable faster document retrieval using certain identifiers. You can create a search index right from the Atlas UI.
To start using Atlas Search, you must configure a search index on your database. Atlas Search indexes categorized data in an easily searchable format and enable faster document retrieval using certain identifiers. You can create a search index right from the Atlas UI.

## Step-by-step guide to creating your first Atlas Search index

Expand Down
2 changes: 1 addition & 1 deletion docs/2-search/3-test-search.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ This will open up the query editor.

<Screenshot src="img/screenshots/2-search/3-test-search/3-query-editor.png" alt="The Edit $search query button" url="https://cloud.mongodb.com" />

Notice you the `path` property currently shows `*`. This means that it will search the entire document. Try to change the search to only search the `title` field.
Notice that the `path` property currently shows `*`. This means that it will search the entire document. Try to change the search to only search the `title` field.

:::tip
You can find more information about how to construct a query path in the [Search documentation](https://www.mongodb.com/docs/atlas/atlas-search/path-construction/).
Expand Down
4 changes: 2 additions & 2 deletions docs/3-aggregations/1-search-stage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ In this section, we'll build an aggregation pipeline with the `$search` stage wh

## Aggregations in the Atlas UI

Navigate to the **Collections** tab of your database deployment, pick the `books` collection, andn avigate to the **Aggregation** tab from the navbar under your collection details.
Navigate to the **Collections** tab of your database deployment, pick the `books` collection, and navigate to the **Aggregation** tab from the navbar under your collection details.

<Screenshot alt="Aggregations tab highlighted on the collection details page" src="img/screenshots/3-aggregations/1-search-stage/1-aggregation-tab.png" url="https://cloud.mongodb.com" />

:::tip
The Atlas UI can start feeling a bit cramp at this point. You can also use the aggregation pipeline builder in <Link to="https://www.mongodb.com/products/tools/compass">Compass</Link> for a better experience.
The Atlas UI can start feeling a bit cramped at this point. You can also use the aggregation pipeline builder in <Link to="https://www.mongodb.com/products/tools/compass">Compass</Link> for a better experience.
:::

Click the **Add Stage** button and type **$search** in the **select** input.
Expand Down
4 changes: 2 additions & 2 deletions docs/5-search-operators/02-text.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 📘 The `text` operator

The `text` operator is used to performs a full-text search using the analyzer that you specify in the index configuration. It is used to search for words or phrases in the full-text fields of your documents.
The `text` operator is used to perform a full-text search using the analyzer that you specify in the index configuration. It is used to search for words or phrases in the full-text fields of your documents.

The `text` operator uses the `OR` operator to combine the search terms. For example, if you search for `Joy of Cooking`, the search will return all documents that contain either `Joy`, `of`, `Cooking` or a combination of those.

Expand Down Expand Up @@ -39,4 +39,4 @@ For example, if you search for `Alice`, you should find the book _Alice in Wonde

## The `synonyms` property

The synonyms property allows you to specify a mapping of synonyms that will be used in your search. For example, if you search for `car`, you might want to find documents that contain the word `automobile` as well. You can specify a mapping of synonyms in your index configuration, and then use the `synonyms` property in your search query to use that mapping.
The synonyms property allows you to specify a mapping of synonyms that will be used in your search. For example, if you search for `car`, you might want to find documents that contain the word `automobile` as well. You can specify a mapping of synonyms in your index configuration, and then use the `synonyms` property in your search query to use that mapping.
2 changes: 1 addition & 1 deletion docs/7-vector-search/5-create-vectors/3-openai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ From there, click on the **Create new secret key** button.

<Screenshot src="img/screenshots/7-vector-search/5-create-vectors/3-openai/2-create-key.png" url="https://platform.openai.com/account/api-keys" alt="The OpenAI API keys page" />

You'll be prompted to give you key a name. You can call it "MongoDB Vector Search Demo". Then click on the **Create secret key** button.
You'll be prompted to give your key a name. You can call it "MongoDB Vector Search Demo". Then click on the **Create secret key** button.

You will then be presented with your API key. Copy it and save it somewhere safe.

Expand Down
4 changes: 2 additions & 2 deletions docs/7-vector-search/9-filtering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Extra activity, do it if you have extra time or are following at home, won't be covered during the hands-on Lab.
:::

One of the nice things about Vector Search in Atlas is its seamless integration with the MongDB ecosystem. For instance, to do a vector search we use an Aggregation Pipeline stage, and after searching we can project, limit our data, etc. But sometimes we want to filter _before_ running the semantic search. For that, we can use the optinal `filter` property in `$vectorSearch`.
One of the nice things about Vector Search in Atlas is its seamless integration with the MongDB ecosystem. For instance, to do a vector search we use an Aggregation Pipeline stage, and after searching we can project, limit our data, etc. But sometimes we want to filter _before_ running the semantic search. For that, we can use the optional `filter` property in `$vectorSearch`.

## Pre-filtering using number fields

Expand Down Expand Up @@ -74,4 +74,4 @@ The only difference is that we've added this part, stating that `language` shoul
}
```

Add that new aggregation pipeline in your code (`server/src/controllers/books.ts` inside the now familiar `searchBooks` method) and when searching, you'll get semantic results written in Spanish.
Add that new aggregation pipeline in your code (`server/src/controllers/books.ts` inside the now familiar `searchBooks` method) and when searching, you'll get semantic results written in Spanish.

0 comments on commit 62aa6a6

Please sign in to comment.