第 313 章 Solr 组件
从 Camel 版本 2.9 开始提供
Solr 组件允许您与 Apache Lucene Solr 服务器(基于 SolrJ 3.5.0)进行接口。
Maven 用户需要将以下依赖项添加到这个组件的 pom.xml 中:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-solr</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel core version -->
</dependency>
313.1. URI 格式 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
注意: 自 Camel 2.14 起,新增加了 solrs 和 solrCloud。
solr://host[:port]/solr?[options]
solrs://host[:port]/solr?[options]
solrCloud://host[:port]/solr?[options]