Apache Solr Java 教程 [英] Apache Solr java tutorials
问题描述
我是 Apache solr 的新手,无论我在做什么 google 搜索,我都无法理解有关 solr 的教程.
I am new to Apache solr and somehow whatever google search I am doing, I am not able to understand the tutorials on solr.
我想在 MySQL 上使用 Solr 和 Java 开发简单的搜索.目前我可以在 tomcat 上运行 solr.但不确定如何继续使用 solr 库.
I want to develop simple search using Solr and Java on MySQL. Currently I am able to run solr on tomcat. But not sure how to proceed using solr libraries.
有人知道我可以参考的教程吗?
Does anybody know tutorials that I can refer to ?
推荐答案
我找不到您想要的任何确切示例.在这里,我将尝试向您展示一种开始方式.
I couldn't find any exact example that you want. Here I will try to show you a way to start.
首先,由于您有一个正在运行的 solr,您应该将其配置为在 Mysql 中索引数据.您可以参考以下教程/博文了解如何配置 Solr 以索引 Mysql 数据.
Firstly, since you have a running solr, you should configure it to index data in Mysql. You can refer to the following tutorials/blog posts to learn how to configure Solr to index Mysql data.
- 使用 Solr/Lucene 进行完整使用 MySQL DB 进行文本搜索
- 将 MYSQL 数据库导入 APACHE SOLR
- Apache Solr MySQL 示例数据配置
- 为 Ubuntu 上的 MySql 索引安装 Solr Tomcat立>
然后通过使用 Solrj(Solr Java 驱动程序),您可以索引/查询数据.您可以在下面找到一些入门教程.
Then by using Solrj (Solr Java Driver) you can index/query data. You can find some getting started tutorials below.
这篇关于Apache Solr Java 教程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!