用于自动完成的 Solr Suggester 组件
这个 JIRA 问题 和这个 wiki 页面 暗示有一个名为 org.apache.solr.spelling.suggest.Suggester
的新兴组件使用 Solr 改进自动完成功能。但我在尝试找到实际包含此代码的版本时遇到了麻烦。
wiki 说 Solr 3.x 和 4.x 已经包含它;这是 Solr 1.3 和 1.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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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