This repository was archived by the owner on Jun 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-41
lines changed Expand file tree Collapse file tree 2 files changed +4
-41
lines changed Original file line number Diff line number Diff line change @@ -168,15 +168,13 @@ public function createIndex(
168168 ->httpClient
169169 ->get (
170170 sprintf (
171- '/%s/indices ' ,
172- $ this ->getAppUUID ()->getId ()
171+ '/%s/indices/%s ' ,
172+ $ this ->getAppUUID ()->getId (),
173+ $ indexUUID ->composeUUID ()
173174 ),
174175 'put ' ,
175176 [],
176- [
177- Http::INDEX_FIELD => $ indexUUID ->toArray (),
178- Http::CONFIG_FIELD => $ config ->toArray (),
179- ],
177+ $ config ->toArray (),
180178 Http::getApisearchHeaders ($ this )
181179 );
182180
Original file line number Diff line number Diff line change 2222 */
2323class Http
2424{
25- /**
26- * @var string
27- *
28- * Index query param field
29- */
30- const INDEX_FIELD = 'index ' ;
31-
3225 /**
3326 * @var string
3427 *
@@ -50,34 +43,6 @@ class Http
5043 */
5144 const QUERY_FIELD = 'query ' ;
5245
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-
8146 /**
8247 * @var string
8348 *
You can’t perform that action at this time.
0 commit comments