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
----
