Platform Explorer / Nuxeo Platform 10.2

Extension point elasticSearchClient

Documentation

Extension point to define how to access the Elasticsearch cluster.

For the TransportClient protocol:

    <elasticSeachClient class="org.nuxeo.elasticsearch.client.ESTransportClientFactory">
        <option name="addressList">localhost:9300</option>
        <option name="clusterName">elasticsearch</option>
        <option name="clientTransportSniff">false</option>
        <option name="clientTransportIgnoreClusterName">false</option>
        <option name="clientTransportPingTimeout">5s</option>
        <option name="clientTransportNodesSamplerInterval">5s</option>
    </elasticSeachClient>

For a Rest client:

    <elasticSeachClient class="org.nuxeo.elasticsearch.client.ESRestClientFactory">
        <option name="addressList">localhost:9200</option>
    </elasticSeachClient>

Contribution Descriptors

Existing Contributions

Contributions are presented in the same order as the registration order on this extension point. This order is displayed before the contribution name, in brackets.

  • nuxeo-runtime-10.2.jar /Users/ffischer/nuxeo-server-10.2-tomcat/nxserver/config/elasticsearch-config.xml
    <extension point="elasticSearchClient" target="org.nuxeo.elasticsearch.ElasticSearchComponent">
        <elasticSearchClient class="org.nuxeo.elasticsearch.client.ESRestClientFactory">
          <option name="addressList"/>
          <option name="connection.timeout.ms">5000</option>
          <option name="socket.timeout.ms">20000</option>
          <option name="username"/>
          <option name="password"/>
          <option name="keystore.path"/>
          <option name="keystore.password"/>
          <option name="keystore.type"/>
        </elasticSearchClient>
      </extension>