第 312 章 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>312.1. URI 格式
注意: 从 Camel 2.14 开始,新功能会添加 solrs 和 solrCloud。
solr://host[:port]/solr?[options] solrs://host[:port]/solr?[options] solrCloud://host[:port]/solr?[options]