Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0
    • Component/s: ElasticSearch
    • Labels:

      Description

      File SearchServerTest.java

      The TransportClient construction code has changed, it now uses the builder pattern. Instead of:

      Settings settings = Settings.settingsBuilder()
      .put("cluster.name", "myClusterName").build();
      Client client = new TransportClient(settings);

      Use the following:

      Settings settings = Settings.settingsBuilder()
      .put("cluster.name", "myClusterName").build();
      Client client = TransportClient.builder().settings(settings).build();

      File EsSettings.java and DefaultIndexSettings.java and EsTester.java and IndexCreator.java

      ImmutableSettings removed :
      Use Settings.builder() instead of ImmutableSettings.builder().

      File EsSettings.java

      InetSocketTransportAddress removed

      Use InetSocketTransportAddress(InetSocketAddress address) instead of InetSocketTransportAddress(String, int). You can create an InetSocketAddress instance with InetSocketAddress(String, int). For example:

      new InetSocketTransportAddress(new InetSocketAddress("127.0.0.1", 0));

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                simon.brandhof Simon Brandhof
                Reporter:
                eric.duquesnoy Eric Duquesnoy (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: