$search
aggregation pipeline stage performs a full-text search of the field or fields in an Atlas collection. The fields must be covered by a MongoDB Search index.
たとえば、$search
を使用して、次のタイプの操作を実行できます。
さまざまなパターンに一致するテキスト フィールドを検索します。
スペルの違いを含む語句を見つけるためのあいまい検索を行います。
複数の検索条件を組み合わせる複合クエリ。
結果をランク付けするための関連性スコア。
一致したテキストのスニペットを返します。
ベクトル類似度を使用してドキュメントを検索するベクトル検索。
詳しくは、以下を参照してください。
Index Definitions to learn more about creating and managing MongoDB Search indexes.
MongoDB Search Aggregation Pipeline Stages to learn more about the
$search
pipeline stage syntax and usage.$search
集計パイプライン ステージ演算子の詳細については、「$search 演算子」を参照してください。