第 215 章 lucene 组件
从 Camel 版本 2.2 开始提供
lucene 组件基于 Apache Lucene 项目。Apache Lucene 是一个强大的高性能、功能全面的文本搜索引擎库,完全使用 Java 编写。有关 Lucene 的详情,请查看以下链接
camel 中的 lucene 组件有助于集成与利用率在企业集成模式和场景中的 Lucene 端点。lucene 组件执行以下操作
- 当有效负载发送到 Lucene Endpoint 时,构建可搜索文档的索引
- 有助于在 Camel 中执行索引搜索
此组件仅支持制作者端点。
Maven 用户需要将以下依赖项添加到此组件的 pom.xml
中:
<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-lucene</artifactId> <version>x.x.x</version> <!-- use the same version as your Camel core version --> </dependency>
215.1. URI 格式
lucene:searcherName:insert[?options] lucene:searcherName:query[?options]
您可以使用以下格式在 URI 中附加查询选项 ?option=value& amp;option=value&…