gpt4 book ai didi

c# - Lucene 3.0.3 中的地理空间搜索 - API 重大更改?

转载 作者:太空宇宙 更新时间:2023-11-03 13:28:29 25 4
gpt4 key购买 nike

我正在尝试在 Lucene.NET (3.0.3) 的最新版本中实现地理空间搜索。

我已经安装了 Lucene.Net (3.0.3)、Lucene.Net Contrib (3.0.3) 和 Lucene.Net Contrib Spacial (3.0.3)。

我正在使用这个出色的示例来进行简单的空间搜索。

http://www.leapinggorilla.com/blog/Read/1010/spatial-search-in-lucenenet---worked-example

它包括以下行:

IProjector projector = new SinusoidalProjector();
var ctp = new CartesianTierPlotter(0, projector, Fields.LocationTierPrefix);

找不到类/接口(interface) IProjector、SinusoidalProjector 和 CartesianTierPlotter。

从文档来看,它们应该位于此处。

Lucene.Net.Spatial.Tier

但是整个命名空间都丢失了。

有人可以举例说明如何让上面的示例在最新版本的 lucene 中工作,以及 api 在最新版本中如何更改这些类吗?

最佳答案

我加入了 lucene.net 邮件列表并将问题提交给专家。我在下面包含了 Itamar Syn-Hershko 的回复。

Yes, Lucene.NET 3.0.3 is using a different spatial search module, based on spatial4n / spatial4j

I will have a blog post up soon to describe how to work. Here's some write up I did a while ago on that: http://code972.com/blog/2012/05/51-the-future-of-geo-spatial-searches-with-lucene,

关于c# - Lucene 3.0.3 中的地理空间搜索 - API 重大更改?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21482527/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com