Apache Solr实现Java教程 [英] Apache Solr java tutorials

查看:450
本文介绍了Apache Solr实现Java教程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的Apache Solr实现,不知怎么不管谷歌搜索我做的,我不能够理解的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.

我要开发使用Solr的和Java在MySQL简单的搜索。目前,我能够在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.

  • Using Solr / Lucene for full text search with MySQL DB
  • IMPORTING A MYSQL DATABASE INTO APACHE SOLR
  • Apache Solr MySQL Sample Data Config
  • nstalling Solr Tomcat for MySql Indexing on Ubuntu

然后,通过使用Solrj(Solr的Java驱动程序),你可以索引/查询数据。您可以在下面找到一些入门教程。

Then by using Solrj (Solr Java Driver) you can index/query data. You can find some getting started tutorials below.

  • Solj tutorial
  • Using SolrJ
  • Indexing with Solrj
  • Solrj example
  • Using Solrj – A short guide to getting started with Solrj

这篇关于Apache Solr实现Java教程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆