本文介绍了如何在linux上使用apache solr和glassfish服务器从数据库索引数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Apachene Lucene和Apache Solr在我的web应用程序中创建一个搜索框。我使用postgres数据库,并且必须使用java来完成。



我对这些概念有所了解(solr,lucene),我正在为此付出努力。我已经安装并配置了apache solr with glassfish。现在我不知道该如何开始,无论我是否需要在eclipse中创建一个java项目或者我必须使用solr admin Gui。



$ p

在此先感谢.....

解决方案

为了使数据可搜索,您必须先索引数据。您可以使用以下方式之一来索引数据。




  • 通过使用Solr客户端,例如
  • 如果您将数据存储在关系数据库中,那么您可以使用
  • 发布XML或Json消息。 。


添加新数据时,您可以使用Solr客户端(Solrj)对其进行索引。您还可以使用Solrj或任何其他客户端库搜索数据。



您可以找到其他。


I want to create a search box in my web app using Apachene Lucene and Apache Solr.I am using postgres database and have to do it with java.

As I new to these concepts(solr,lucene), I am struggling with this. I already installed and configured apache solr with glassfish.Now I dont know how to start with this, Whether I have to cretae a java project in eclipse or I have to use solr admin Gui.

can any one help me on this?

Thanks in Advance.....

解决方案

In order to make data searchable, you have to first index your data. You can use one of the following ways to index data.

When new data added you can index it using Solr clients (Solrj). You can also search your data using Solrj or any other client libraries.

You can find other client libraries here.

这篇关于如何在linux上使用apache solr和glassfish服务器从数据库索引数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 14:06