Java Lucene 初学者教程

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4218908/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-14 14:42:47  来源:igfitidea点击:

Beginners Lucene tutorial

javalucene

提问by ianckc

I've never done anything in Java before but I'd like to use Lucene for the search on a site.

我以前从未用 Java 做过任何事情,但我想使用 Lucene 在网站上进行搜索。

I'm having trouble find a good step by step tutorial for a complete beginner at this.

我在为一个完整的初学者找到一个很好的分步教程时遇到了麻烦。

Can anyone recommend a good tutorial?

谁能推荐一个好的教程?

Thanks

谢谢

采纳答案by Fanny H.

Along with user428747 answer, you can also read this article.

随着 user428747 的回答,您还可以阅读这篇文章

As well as this one(which is kind of old compared to the first one).

以及这一个(这是一种老相比第一个)。

On a side note, if you want to use Lucene, did you consider using Solr? It uses the lucene search library and extends it as you can read here.

附带说明一下,如果您想使用 Lucene,您是否考虑过使用Solr?它使用 lucene 搜索库并对其进行扩展,您可以在此处阅读。

回答by user428747

this website might help you a bit..

这个网站可能会帮助你一点..

http://www.lucenetutorial.com/lucene-in-5-minutes.html

http://www.lucenetutorial.com/lucene-in-5-minutes.html

回答by buru

The classics: Lucene in Action

经典之作:Lucene 在行动

回答by hashable

This is not a direct reply to your question on Lucene tutorials (For that, my answer is same as some of the other posters: Bob Carpenter's Lucene in 60 secondstutorial on the Lingpipe blog).

这不是对您关于 Lucene 教程的问题的直接回复(为此,我的回答与其他一些海报相同:Bob Carpenter在 Lingpipe 博客上的60 秒 Lucene教程)。

If you don't want to learn Java just for Lucene, any full-text search database (Postgres/Mysql/etc) should solve your purpose. In particular Sphinxis recommended.

如果您不想只为 Lucene 学习 Java,任何全文搜索数据库(Postgres/Mysql/etc)都应该可以解决您的问题。特别推荐Sphinx

This decision particularly relevant if you need your search app to have high performance / scalability (since you will be learning two things - Java and Lucene). Unless you have an in-house java expert, it is better to fight one war than two at the same time.

如果您需要搜索应用程序具有高性能/可扩展性(因为您将学习两件事 - Java 和 Lucene),则此决定尤其重要。除非您有内部 Java 专家,否则最好打一场War,而不是同时打两场War。

回答by Xodarap

If you're using Zend, why aren't you using Zend's PHP port of lucene? See herefor a tutorial on it.

如果您使用 Zend,为什么不使用 Zend 的 PHP lucene 端口?有关它的教程,请参见此处

回答by caarlos0

maybe apache solr is better for you: http://lucene.apache.org/solr/

也许 apache solr 更适合你:http: //lucene.apache.org/solr/