@@ -25,18 +25,13 @@ public function boot(): void
25
25
static function ($ app ) {
26
26
$ client = new Client (
27
27
[
28
- 'master_node ' => config (
29
- 'scout.typesensesearch.master_node ' ,
30
- []
31
- ),
32
- 'read_replica_nodes ' => !config (
33
- 'scout.typesensesearch.enabled_read_replica ' ,
34
- false
35
- ) ? [] : config ('scout.typesensesearch.read_replicas ' , []),
36
- 'timeout_seconds ' => config (
37
- 'scout.typesensesearch.timeout ' ,
38
- 2.0
39
- ),
28
+ 'api_key ' => config ('scout.typesensesearch.api_key ' , '' ),
29
+ 'nodes ' => config ('scout.typesensesearch.nodes ' , []),
30
+ 'nearest_node ' => config ('scout.typesensesearch.nearest_node ' , []),
31
+ 'connection_timeout_seconds ' => config ('scout.typesensesearch.connection_timeout_seconds ' , 2.0 ),
32
+ 'healthcheck_interval_seconds ' => config ('scout.typesensesearch.healthcheck_interval_seconds ' , 60 ),
33
+ 'num_retries ' => config ('scout.typesensesearch.num_retries ' , 3 ),
34
+ 'retry_interval_seconds ' => config ('scout.typesensesearch.retry_interval_seconds ' , 1.0 ),
40
35
]
41
36
);
42
37
return new TypesenseSearchEngine (new Typesense ($ client ));
@@ -60,18 +55,13 @@ public function register(): void
60
55
static function () {
61
56
$ client = new Client (
62
57
[
63
- 'master_node ' => config (
64
- 'scout.typesensesearch.master_node ' ,
65
- []
66
- ),
67
- 'read_replica_nodes ' => !config (
68
- 'scout.typesensesearch.enabled_read_replica ' ,
69
- false
70
- ) ? [] : config ('scout.typesensesearch.read_replicas ' , []),
71
- 'timeout_seconds ' => config (
72
- 'scout.typesensesearch.timeout ' ,
73
- 2.0
74
- ),
58
+ 'api_key ' => config ('scout.typesensesearch.api_key ' , '' ),
59
+ 'nodes ' => config ('scout.typesensesearch.nodes ' , []),
60
+ 'nearest_node ' => config ('scout.typesensesearch.nearest_node ' , []),
61
+ 'connection_timeout_seconds ' => config ('scout.typesensesearch.connection_timeout_seconds ' , 2.0 ),
62
+ 'healthcheck_interval_seconds ' => config ('scout.typesensesearch.healthcheck_interval_seconds ' , 60 ),
63
+ 'num_retries ' => config ('scout.typesensesearch.num_retries ' , 3 ),
64
+ 'retry_interval_seconds ' => config ('scout.typesensesearch.retry_interval_seconds ' , 1.0 ),
75
65
]
76
66
);
77
67
@@ -82,4 +72,4 @@ static function () {
82
72
$ this ->app ->alias (Typesense::class, 'typesense ' );
83
73
}
84
74
85
- }
75
+ }
0 commit comments