문서 메뉴

문서 홈가이드 시작

동적 인덱스 빌드하기

In this guide, you will learn how to create an Atlas Search index with dynamic mappings to query and quickly retrieve relevant data.

소요 시간: 5분

1
2
샘플 데이터 클러스터
3
1
2

Create Search Index를 클릭합니다.

3

Select the Visual Editor configuration method, then click Next.

4

Database and Collection 의 경우 sample_supplies 데이터베이스와 sales 컬렉션을 선택합니다. 그런 다음 Next 를 클릭합니다.

5

Click Create Search Index to confirm your selection. Wait for the Status column to read Active.

You now have a search index that dynamically indexes the fields across the documents in your collection.

4
1

Click Query in the Actions column of your index definition.

2

Type notepad into the search bar, then click Search.

This query returns all documents in the sales collection with a field that contains notepad.

3

Your results should resemble the following sample documents:

SCORE: 0.20185701549053192
salesDate: 2013-03-07T09:27:58.283+00:00
items: Array
storeLocation: "Austin"
SCORE: 0.20185701549053192
salesDate: 2013-05-05T19:03:06.358+00:00
items: Array
storeLocation: "London"
SCORE: 0.20185701549053192
salesDate: 2016-06-20T14:09:52.408+00:00
items: Array
storeLocation: "Denver"

Each record also includes a relevance score. You can expand Array and Object fields to view their contents by clicking on them.

4

Click Edit Query Syntax. The modal window displays the query sent through the Atlas Search API.

If you successfully completed the procedure in this guide, you have created an Atlas Search index with dynamic field mappings and used it to perform a relevance-based query against the sample_supplies.sales collection. In the next guide, you will learn how to perform a refined search by creating an index with static field mappings.

마지막으로
정적 필드 매핑으로 인덱스 빌드하기
5분

Retrieve documents in MongoDB with a field-specific query.

시작 가이드
3장
Atlas Search
  • 동적 인덱스 빌드하기
  • 정적 필드 매핑으로 인덱스 빌드하기
  • 복합 연산자로 쿼리하기
  • 패싯으로 쿼리하기
가이드 시작 →