Solr は copy-field に関して紛らわしいエラーメッセージを返します

トピック作成者:ks-solruserml-bot (2025/07/17 10:59 投稿)
6
(The bot translated the original post https://lists.apache.org/thread/4f6x8phx9vbxyo484ygjz8vrkmbm25s0 into Japanese and reposted it under Apache License 2.0. The copyright of posted content is held by the original poster.)
みなさん、こんにちは。
インデックスをクエリして、title_s_lower
でソートしようとすると、HTTP エラー 400 が返されます:
{
"error":{
"metadata":["error-class","org.apache.solr.common.SolrException","root-error-class","org.apache.solr.common.SolrException"],
"msg":"can not sort on a field w/o docValues unless it is indexed=true uninvertible=true and the type supports Uninversion: title_s_lower",
"code":400
}
}
私見ですが、このエラーメッセージは title_s_lower
に indexed=true uninvertible=true
もしくは docValues=true
を追加するように求めているように思えますが、これは title_s_lower
が copy-field であるため不可能です。
インデックス作成用の JSON データの抜粋:
{
"add-field": [
// 省略
{
"name": "title",
"type": "text_general",
"stored": true,
"indexed": true,
"multiValued": false,
"required": true
},
// 省略
],
"add-copy-field": [
{
"source": "title",
"dest": "title_s_lower"
}
]
// 省略
}
どなたか、この問題の修正方法をご存じでしょうか?
Mag.phil. Robert Ehrenleitner, BEng.
トピックへ返信するには、ログインが必要です。