File tree Expand file tree Collapse file tree 2 files changed +14
-15
lines changed
main/java/com/meilisearch/sdk
test/java/com/meilisearch/integration Expand file tree Collapse file tree 2 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -1296,7 +1296,6 @@ public TaskInfo resetEmbeddersSettings() throws MeilisearchException {
12961296 return this .settingsHandler .resetEmbedders (this .uid );
12971297 }
12981298
1299-
13001299 /**
13011300 * Compacts the database for this index to reclaim unused space
13021301 *
@@ -1306,8 +1305,8 @@ public TaskInfo resetEmbeddersSettings() throws MeilisearchException {
13061305 */
13071306 public TaskInfo compact () throws MeilisearchException {
13081307 return this .config .httpClient .post (
1309- new URLBuilder ("/indexes" ).addSubroute (this .uid ).addSubroute ("/compact" ).getURL (),
1310- null ,
1311- TaskInfo .class );
1308+ new URLBuilder ("/indexes" ).addSubroute (this .uid ).addSubroute ("/compact" ).getURL (),
1309+ null ,
1310+ TaskInfo .class );
13121311 }
13131312}
Original file line number Diff line number Diff line change @@ -352,17 +352,17 @@ public void testCompactWithDocuments() throws Exception {
352352 Index index = createEmptyIndex (indexUid , this .primaryKey );
353353
354354 TaskInfo addTask =
355- index .addDocuments (
356- "[{"
357- + "\" id\" : 1,"
358- + "\" title\" : \" Document1\" ,"
359- + "\" description\" : \" Test document 1\" "
360- + "},"
361- + "{"
362- + "\" id\" : 2,"
363- + "\" title\" : \" Document2\" ,"
364- + "\" description\" : \" Test document 2\" "
365- + "}]" );
355+ index .addDocuments (
356+ "[{"
357+ + "\" id\" : 1,"
358+ + "\" title\" : \" Document1\" ,"
359+ + "\" description\" : \" Test document 1\" "
360+ + "},"
361+ + "{"
362+ + "\" id\" : 2,"
363+ + "\" title\" : \" Document2\" ,"
364+ + "\" description\" : \" Test document 2\" "
365+ + "}]" );
366366 index .waitForTask (addTask .getTaskUid ());
367367
368368 TaskInfo compactTask = index .compact ();
You can’t perform that action at this time.
0 commit comments