AI エージェント向け: ドキュメントインデックスは https://www.mongodb.com/ja-jp/docs/llms.txt で利用できます。すべてのページの markdown バージョンは、いずれかの URL パスに .md を追加することで利用できます。
Docs Menu

MongoDB Search の互換性と制限

This page describes the compatibility and limitations of MongoDB Search features on Atlas. For details on MongoDB Search compatibility with self-managed deployments, see Compatibility and Requirements for mongot.

MongoDB Search の一部の機能には、特定のバージョンのMongoDBが必要になる場合があります。次の表では、特定のMongoDBバージョンを必要とするMongoDB Search 機能が示されています。

MongoDB Search の機能
機能をサポートする MongoDB バージョン

8.0+

$search$searchMeta を使用して、クエリビューを直接クエリします

8.1+

シャーディングされたビューでの$search$searchMeta

8.2+

$rankFusion ビューについて

8.2+

7.0+, 8.0+

7.0+, 8.0+

7.0+, 8.0+

7.0+, 8.0+

7.0+, 8.0+

7.0+, 8.0+

7.0+, 8.0+

7.0+, 8.0+

7.0+, 8.0+

7.0+, 8.0+

$search searchAftersearchBefore オプション

6.0.13+, 7.0.5+, 8.0+

MongoDB Search is not supported for time series collections. Starting in MongoDB 8.3, the $search, $searchMeta, and $vectorSearch stages fail with an error message when run on timeseries collections. Previously, these stages returned empty results.

次の制限は、 無料クラスターおよび Flex クラスター上のMongoDB Search にのみ適用されます。

  • インデックス作成数の上限は以下のとおりです。

    • 無料クラスターの 3 インデックス(タイプに関係なく、search または vector に関係なく)。

    • Flex クラスターで 10 インデックス。

  • クラスター階層で許可されているインデックスの最大数 に達したら、クラスター階層を増やす追加のインデックスを作成できます。クラスター階層を増やすすると、インデックスが新しいクラスター階層に再構築され、最初の同期 がトリガーされます。

  • インデックス定義の JSON オブジェクトのサイズは 3 KB を超えることはできません。

  • 300 を超えるフィールドを含むインデックスビルドは失敗します。

  • Lucene のデフォルトの 句制限である 1024 は、検索用に作成されたすべてのBooleanQueryに適用されます。

  • シノニム(同意語)コレクションは 10,000 ドキュメントを超えることはできません。

  • MongoDB Search doesn't support encrypting MongoDB Search indexes with encryption keys using Customer Key Management in the Atlas UI.

注意

MongoDB フィードバック エンジンを使用して、新しい機能をリクエストしたり、既存のリクエストをアップ投票したりできます。

Search Playground の制限の詳細については、「Search Playground の制限」をご覧ください。

サポートされているクライアントの詳細については、「インデックス」と「クエリ」を参照してください。

If you create a MongoDB Search index that has or will soon have more than 2.1 billion index objects, you must use numPartitions or shard your cluster. For this limit, each top-level document or nested embeddedDocument in the indexed collection fields counts as one object

デフォルトでは 、 MongoDB Search は、特定のレプリカセットノードまたはシャードで 2.1 億インデックスオブジェクトを超える単一インデックスの変更のレプリケートを停止します。つまり、インデックスは引き続きクエリ可能ですが、古い結果が生じる可能性があります。

If your collection contains documents that are 16MB or larger, MongoDB Search fails to index your document, causing your index to become STALE, and initiates a full index rebuild. You must delete the offending document(s) from your collection in order for index rebuild to successfully complete. This issue can also occur when update operations on large documents cause the change stream event to exceed the 16MB BSON limit. To avoid this, we recommend that no single document in your collection exceeds 8MB. Consider the following best practices:

  • サブドキュメントや配列のサイズを最小限に抑えるように、ドキュメントを構造化してください。

  • 大規模なフィールド、サブドキュメント、または配列を更新または置換する操作は避けてください。

To learn more, see Change Streams Production Recommendations and Reduce the Size of Large Documents.

インデックスの制限の詳細については、以下を参照してください。

フィールド型の制限については、次を参照してください。

If you're using a clustered collection and have the notablescan parameter set to true, your MongoDB Search indexes may not finish building. To resolve this issue, you must set the notablescan parameter to false or check your log for index status transitions.

クエリ演算子の制限の詳細については、以下を参照してください。

クエリ オプションの互換性と制限の詳細については、以下を参照してください。