215.3. Spring Boot Auto-Configuration
组件支持 11 个选项,如下所列。
| Name | 描述 | 默认值 | 类型 |
|---|---|---|---|
| camel.component.lucene.config.analyzer | 分析器构建 TokenStreams,用于分析文本。因此,它代表了从文本中提取索引术语的策略。分析器的值可以是扩展抽象类 org.apache.lucene.analysis.Analyzer 的任何类。Lucene 还开箱即用提供一组丰富的分析器 | analyzer | |
| camel.component.lucene.config.authority | 字符串 | ||
| camel.component.lucene.config.host | lucene 服务器的 URL | 字符串 | |
| camel.component.lucene.config.index-directory | 在对指定分析器分析文档时创建索引文件的文件系统目录 | File | |
| camel.component.lucene.config.lucene-version | Version | ||
| camel.component.lucene.config.max-hits | 限制搜索操作的结果集的整数值 | 整数 | |
| camel.component.lucene.config.operation | 要执行的操作,如 insert 或 query。 | LuceneOperation | |
| camel.component.lucene.config.source-directory | 可选目录,其中包含要在生成者启动时分析和添加到索引中的文件。 | File | |
| camel.component.lucene.config.uri | URI | ||
| camel.component.lucene.enabled | 启用 lucene 组件 | true | 布尔值 |
| camel.component.lucene.resolve-property-placeholders | 组件是否应在启动时解析属性占位符。只有 String 类型的属性可以使用属性占位符。 | true | 布尔值 |