-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document the options for configuring the ElasticSearch REST client
Fixes #2502
- Loading branch information
1 parent
10197de
commit 8e4c6e6
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
extensions/elasticsearch-rest/runtime/src/main/doc/usage.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
This extension leverages the https://quarkus.io/guides/elasticsearch[Quarkus ElasticSearch REST Client]. | ||
|
||
You can choose to configure ElasticSearch via the Quarkus https://quarkus.io/guides/elasticsearch#quarkus-elasticsearch-restclient-lowlevel_configuration[configuration properties] and the `RestClient` will be autowired into the Camel ElasticSearch component. | ||
|
||
Or you can configure ElasticSearch via the Camel ElasticSearch component / endpoint options. When doing this, you must disable autowiring in one of the ways outlined below. | ||
|
||
Disabling autowiring at the component level. | ||
[source,properties] | ||
---- | ||
camel.component.elasticsearch-rest.autowired-enabled = false | ||
---- | ||
|
||
Disabling autowiring at the endpoint level. | ||
[source,java] | ||
---- | ||
from("direct:search") | ||
.to("elasticsearch-rest://elasticsearch?hostAddresses=localhost:9200&operation=Search&indexName=index&autowiredEnabled=false") | ||
---- | ||
|
||
Globally disabling autowiring. Note that this disables autowiring for all components. | ||
[source,properties] | ||
---- | ||
camel.main.autowired-enabled = false | ||
---- |