File tree 2 files changed +4
-41
lines changed
2 files changed +4
-41
lines changed Original file line number Diff line number Diff line change @@ -168,15 +168,13 @@ public function createIndex(
168
168
->httpClient
169
169
->get (
170
170
sprintf (
171
- '/%s/indices ' ,
172
- $ this ->getAppUUID ()->getId ()
171
+ '/%s/indices/%s ' ,
172
+ $ this ->getAppUUID ()->getId (),
173
+ $ indexUUID ->composeUUID ()
173
174
),
174
175
'put ' ,
175
176
[],
176
- [
177
- Http::INDEX_FIELD => $ indexUUID ->toArray (),
178
- Http::CONFIG_FIELD => $ config ->toArray (),
179
- ],
177
+ $ config ->toArray (),
180
178
Http::getApisearchHeaders ($ this )
181
179
);
182
180
Original file line number Diff line number Diff line change 22
22
*/
23
23
class Http
24
24
{
25
- /**
26
- * @var string
27
- *
28
- * Index query param field
29
- */
30
- const INDEX_FIELD = 'index ' ;
31
-
32
25
/**
33
26
* @var string
34
27
*
@@ -50,34 +43,6 @@ class Http
50
43
*/
51
44
const QUERY_FIELD = 'query ' ;
52
45
53
- /**
54
- * @var string
55
- *
56
- * Config param field
57
- */
58
- const CONFIG_FIELD = 'config ' ;
59
-
60
- /**
61
- * @var string
62
- *
63
- * Language query param field
64
- */
65
- const LANGUAGE_FIELD = 'language ' ;
66
-
67
- /**
68
- * @var string
69
- *
70
- * From field
71
- */
72
- const FROM_FIELD = 'from ' ;
73
-
74
- /**
75
- * @var string
76
- *
77
- * From field
78
- */
79
- const TO_FIELD = 'to ' ;
80
-
81
46
/**
82
47
* @var string
83
48
*
You can’t perform that action at this time.
0 commit comments