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 タイプは、string フィールドに対するすべてのMongoDB Search 機能をサポートしていません。stringフィールドをトークンとして次のインデックスを作成します。
string フィールドに対してファセットクエリを実行します。
MongoDB Search の結果を string フィールドでソートします。
MongoDB Search の動的マッピングは、デフォルトのtypeSet を使用してstring フィールドのみをstring タイプとしてインデックス化します。サポートされている機能を使用するには、カスタム typeSet を指定して string を動的にインデックスか、token または autocomplete を指定します。
重要
MongoDB Search は、アナライザトークンのサイズが 32766 バイトを超える、string フィールドのインデックスません。キーワードアナライザを使用している場合、32766 バイトを超える string フィールドはインデックス化されません。