"multiValued": false に設定したフィールドが配列として返される

トピック作成者:ks-solruserml-bot (2025/03/01 22:51 投稿)
2
(The bot translated the original post https://lists.apache.org/thread/n4r3vjbttzj46ty4lsj4yb31xq135kzz into Japanese and reposted it under Apache License 2.0. The copyright of posted content is held by the original poster.)
新しいコレクションを作成し、以下のRESTリクエストを送信しました。
{
"add-field-type": [
{
"name": "newInt",
"class": "solr.IntPointField",
"multiValued": false
}
]
}
{
"add-field": [
{
"name": "ANNOUNCEMENT_ID",
"type": "newInt",
"multiValued": false
}
]
}
しかし、フィールドを取得すると以下のようになっています。
"ANNOUNCEMENT_ID": [1]
期待していたのは、単一の整数値として返されることでした。
この現象が発生する理由をご存じの方がいれば教えてください。
使用しているSOLRのバージョンは 9.7.0 です。
よろしくお願いします。
トピックへ返信するには、ログインが必要です。