ドキュメント ID にはどの long 型フィールドタイプを使うべきでしょうか? LongPointField は動作せず、TrieLongField は非推奨になっています。

トピック作成者:ks-solruserml-bot (2025/10/24 18:25 投稿)
2
(The bot translated the original post https://lists.apache.org/thread/9cwppdh8j5ygpslbfqkjlnoo1rmstynv into Japanese and reposted it under Apache License 2.0. The copyright of posted content is held by the original poster.)
こんにちは。
ドキュメント ID 値に LongPointField を使おうとして苦労しています。
<fieldType name="long_dv" class="solr.LongPointField" docValues="true" />
<field name="id" type="long_dv" indexed="true" stored="true"
docValues="true" required="true" />
<uniqueKey>id</uniqueKey>
これでコアを作成しようとすると、次のエラーしか出ません:
Error CREATEing SolrCore 'test': Unable to create core [test] Caused by:
uniqueKey field (id) can not be configured to use a Points based FieldType: long
一方、上記の fieldType を次のように変更するとコア作成はすぐに正常に動作します:
<fieldType name="long_dv" class="solr.TrieLongField" docValues="true" />
しかしリファレンスガイド(cf.
https://solr.apache.org/guide/solr/latest/indexing-guide/field-types-included-with-solr.html)には、
TrieLongField: LongPointField を代わりに使用すること
と書かれています。
そこで質問です:
Solr 9.8 でドキュメント ID を long 型にするには、エラーにならず、かつ非推奨の long 型を使わずに、どのように設定すればよいでしょうか?
どんな助けでもありがたいです。
ありがとうございます。
Marc
トピックへ返信するには、ログインが必要です。