File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
benchmarks/Elasticsearch/Benchmarks Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 3
3
namespace Elasticsearch \Benchmarks ;
4
4
5
5
use Athletic \AthleticEvent ;
6
- use Elasticsearch \Client ;
6
+ use Elasticsearch \ClientBuilder ;
7
7
8
8
class AsyncVsSyncIndexingEvent extends AthleticEvent
9
9
{
@@ -19,9 +19,9 @@ class AsyncVsSyncIndexingEvent extends AthleticEvent
19
19
20
20
protected function classSetUp ()
21
21
{
22
- $ this ->client = $ client = Client:: newBuilder ()->setHosts (['127.0.0.1:9200 ' ])->build ();
22
+ $ this ->client = $ client = ClientBuilder:: create ()->setHosts (['127.0.0.1:9200 ' ])->build ();
23
23
24
- $ this ->setupClient = $ client = Client:: newBuilder ()->setHosts (['127.0.0.1:9200 ' ])->build ();
24
+ $ this ->setupClient = $ client = ClientBuilder:: create ()->setHosts (['127.0.0.1:9200 ' ])->build ();
25
25
$ indexParams ['index ' ] = 'benchmarking_index ' ;
26
26
$ indexParams ['body ' ]['test ' ]['_all ' ]['enabled ' ] = false ;
27
27
$ indexParams ['body ' ]['test ' ]['properties ' ]['testField ' ] = array (
Original file line number Diff line number Diff line change 3
3
namespace Elasticsearch \Benchmarks ;
4
4
5
5
use Athletic \AthleticEvent ;
6
- use Elasticsearch \Client ;
6
+ use Elasticsearch \ClientBuilder ;
7
7
8
8
class SequentialIndexingEvent extends AthleticEvent
9
9
{
@@ -19,9 +19,9 @@ class SequentialIndexingEvent extends AthleticEvent
19
19
20
20
protected function classSetUp ()
21
21
{
22
- $ this ->client = $ client = Client:: newBuilder ()->setHosts (['127.0.0.1:9200 ' ])->build ();
22
+ $ this ->client = $ client = ClientBuilder:: create ()->setHosts (['127.0.0.1:9200 ' ])->build ();
23
23
24
- $ this ->setupClient = $ client = Client:: newBuilder ()->setHosts (['127.0.0.1:9200 ' ])->build ();
24
+ $ this ->setupClient = $ client = ClientBuilder:: create ()->setHosts (['127.0.0.1:9200 ' ])->build ();
25
25
$ indexParams ['index ' ] = 'benchmarking_index ' ;
26
26
$ indexParams ['body ' ]['test ' ]['_all ' ]['enabled ' ] = false ;
27
27
$ indexParams ['body ' ]['test ' ]['properties ' ]['testField ' ] = array (
You can’t perform that action at this time.
0 commit comments