用于自动完成的 Solr Suggester 组件

发布于 2024-10-18 20:03:56 字数 1199 浏览 5 评论 0原文

这个 JIRA 问题 和这个 wiki 页面 暗示有一个名为 org.apache.solr.spelling.suggest.Suggester 的新兴组件使用 Solr 改进自动完成功能。但我在尝试找到实际包含此代码的版本时遇到了麻烦。

wiki 说 Solr 3.x4.x 已经包含它;这是 Solr 1.31.4 的内部人士说法吗?我正在使用 1.4.1(通过 Maven),但我没有看到这样的组件。

此处提取源代码,我在src/java/org/apache/solr/spelling/suggest/Suggester.java。但它无法构建:

[javac] Compiling 8 source files to /Users/user/Downloads/apache-solr-4.0-2011-02-22_08-06-33/apache-solr-4.0-2011-02-22_08-06-33/contrib/analysis-extras/build/classes

BUILD FAILED
/Users/user/Downloads/apache-solr-4.0-2011-02-22_08-06-33/apache-solr-4.0-2011-02-22_08-06-33/common-build.xml:275: /Users/user/Downloads/apache-solr-4.0-2011-02-22_08-06-33/apache-solr-4.0-2011-02-22_08-06-33/contrib/analysis-extras/lib does not exist.

有没有办法获得一个相当稳定的 Solr 工件,其中包含 Suggester,最好通过 Maven?

This JIRA issue and this wiki page imply that there is an up-and-coming component called org.apache.solr.spelling.suggest.Suggester for doing improved auto-complete with Solr. But I'm having trouble trying to find a release that actually has this code.

The wiki says that Solr 3.x and 4.x have include it; is that insider-speak for Solr 1.3 and 1.4 respectively? I'm using 1.4.1 (via Maven), and I see no such component.

Pulling the source from here, I find it in src/java/org/apache/solr/spelling/suggest/Suggester.java. But it fails to build with:

[javac] Compiling 8 source files to /Users/user/Downloads/apache-solr-4.0-2011-02-22_08-06-33/apache-solr-4.0-2011-02-22_08-06-33/contrib/analysis-extras/build/classes

BUILD FAILED
/Users/user/Downloads/apache-solr-4.0-2011-02-22_08-06-33/apache-solr-4.0-2011-02-22_08-06-33/common-build.xml:275: /Users/user/Downloads/apache-solr-4.0-2011-02-22_08-06-33/apache-solr-4.0-2011-02-22_08-06-33/contrib/analysis-extras/lib does not exist.

Is there a way to get a reasonably stable Solr artifact with the Suggester included, preferably via Maven?

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

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

发布评论

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

评论(1

雄赳赳气昂昂 2024-10-25 20:03:56

Solr 3.x 和 4.x 不是 1.3 和 1.4。

1.3 和 1.4 是稳定版本。 3.x 和 4.x 尚未发布。由于 Solr 与 Lucene 合并,版本控制方案发生了变化。

如果您需要 4.x 构建,我建议从 构建服务器

另请注意,有多种方法可以使用 1.4.1 实现自动完成,请参阅 简单的 Solr 架构问题自动完成

Solr 3.x and 4.x are not 1.3 and 1.4.

1.3 and 1.4 are stable releases. 3.x and 4.x are yet unreleased. Versioning scheme changed due to Solr merging with Lucene.

If you need a 4.x build I recommend getting one from the build server.

Also note there are several ways to implement autocomplete with 1.4.1, see Simple Solr schema problem for autocomplete

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