solr core 和 solr 的区别solrj &spring-data-solr [英] Difference between solr core & solrj & spring-data-solr

查看:76
本文介绍了solr core 和 solr 的区别solrj &spring-data-solr的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试学习 solr 来实现对应用程序之一的搜索.我总是碰到三个不同的库,solr-coresolrjspring-data-solr 三个之间的基本区别是什么三个罐子,哪个应该与弹簧一起使用?最近我尝试在 spring 中使用 solrj 和 solr-core 并得到一个 StackOverflowException

I have been trying to learn solr for implementing search for one of the application. There are three different libraries that i always bump into solr-core, solrj, and spring-data-solr what is the basic difference between three three jar and which is supposed to be used with spring? Recently i tried using solrj and solr-core with spring and got an StackOverflowException

这里是我的问题导致堆栈溢出.无法找到解决方案,我尝试删除 solr-core 依赖项,结果出现以下错误

here is my question that resulted in stack overflow.Unable to find a solution i tried removing solr-core dependency and ended up in the following error

 org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'solr:solr-server'. 

我基本上觉得我没有以正确的方式做这件事.使我的困惑大开眼界将非常有帮助.谢谢.

I basically feel that im not doing it the right way. An eye opener for my confusion will be quite helpful. Thanks.

推荐答案

Solrj 是尝试连接到 SolrServer 实例时的客户端库.

Solrj is the client lib when trying to connect to a SolrServer instance.

Spring Data Solr 是 solrj 之上的一个小层,提供一些流畅的 API 和存储库抽象.看看 example 和/或这个 教程 作为起点.

Spring Data Solr is a small layer above solrj providing some fluent API and repository abstractions. Have a look at the example and/or this tutorial as a starting point.

您可能想使用 solr-core 来运行嵌入式 SolrServer,例如.用于测试.

You might want to use solr-core to run an embedded SolrServer eg. for testing.

这篇关于solr core 和 solr 的区别solrj &spring-data-solr的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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