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.

重要

The feature described on this page is not currently supported on Atlas Infinite clusters during public preview. For the features supported in public preview, see Public Preview Availability.

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 searchAfter と searchBefore オプション

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 (BSON limit), MongoDB Search fails to index the document, causes your index to become STALE, and requires a full index rebuild. This issue can also occur when update operations on documents cause the change stream event to exceed the 16MB BSON limit. To minimize the risk of your index becoming stale, ensure that documents in your collection don't exceed 8MB. If your index has become stale, you must delete the large document(s) from your collection in order for the index rebuild to complete.

さらに、

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

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

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.

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

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