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

string フィールドのインデックス作成方法

Use the MongoDB Search string type to index string fields. Use the MongoDB Search phrase, querystring, span, text, wildcard, regex, and moreLikeThis operators to query fields indexed as the string type.

string タイプは、string フィールドに対するすべてのMongoDB Search 機能をサポートしていません。stringフィールドをトークンとして次のインデックスを作成します。

  • string フィールドに対してファセットクエリを実行します。

  • MongoDB Search の結果を string フィールドでソートします。

  • equals、in、およびrange の各演算子を使って、クエリの完全一致を検索します。

MongoDB Search の動的マッピングは、デフォルトのtypeSet を使用してstring フィールドのみをstring タイプとしてインデックス化します。サポートされている機能を使用するには、カスタム typeSet を指定して string を動的にインデックスか、token または autocomplete を指定します。

重要

MongoDB Search は、アナライザトークンのサイズが 32766 バイトを超える、string フィールドのインデックスません。キーワードアナライザを使用している場合、32766 バイトを超える string フィールドはインデックス化されません。

このページを評価