Floatfield在哪里?

发布于 2025-02-09 07:14:44 字数 596 浏览 1 评论 0 原文

我已将Lucene.net添加到.NET 6核心项目中,并用Textfield,stringfiled和Int32Field索引文档都可以正常工作,但是Floatfield似乎不受支持。我正在使用luceeneversion.lucene_48。根据 https://lucene.apache。 org/core/4_1_0/core/org/apache/lucene/lucene/document/floatfield.html 自Java Lucene版本4.1以来,Floatfield就可以使用。我想念什么?谢谢

I've added Lucene.Net to a .Net 6 Core project and indexing docs with TextField, StringFiled, and Int32Field all work fine but FloatField doesn't seem to be supported. I'm using LuceneVersion.LUCENE_48. According to https://lucene.apache.org/core/4_1_0/core/org/apache/lucene/document/FloatField.html, FloatField has been available since version 4.1 of Java Lucene. What am I missing? Thanksenter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

娇纵 2025-02-16 07:14:44

请参阅。数字类型和方法名称(包括数字类型)已更改为使用.NET约定。

而不是浮子使用单。请注意,lucene.net.queries.function.valuesources.singlefunction被更名为lucene.net.queries.function.vunction.valuesources.singularFunctor.singularFunction以将其与系统区分开。

因此, floatfield 已重命名为 singlefield

See the Lucene.NET 4.8.0 migration guide. Numeric types and method names including numeric types have been changed to use .NET conventions.

Instead of Float use Single. Note that Lucene.Net.Queries.Function.ValueSources.SingleFunction was renamed Lucene.Net.Queries.Function.ValueSources.SingularFunction to distinguish it from the System.Single data type.

So, FloatField has been renamed to SingleField.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文