File tree 2 files changed +3
-3
lines changed
main/java/com/meilisearch/sdk
test/java/com/meilisearch/integration 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ public Task resetRankingRulesSettings(String uid) throws Exception {
117
117
* @throws Exception if an error occurs
118
118
*/
119
119
public Map <String , String []> getSynonymsSettings (String uid ) throws Exception {
120
- return this .gson .< Map < String , String []>> fromJson (
120
+ return this .gson .fromJson (
121
121
meilisearchHttpRequest .get ("/indexes/" + uid + "/settings/synonyms" ), Map .class );
122
122
}
123
123
@@ -400,7 +400,7 @@ public Task resetDistinctAttributeSettings(String uid) throws Exception {
400
400
* @throws Exception if an error occurs
401
401
*/
402
402
public TypoTolerance getTypoToleranceSettings (String uid ) throws Exception {
403
- return this .gson .< TypoTolerance > fromJson (
403
+ return this .gson .fromJson (
404
404
meilisearchHttpRequest .get ("/indexes/" + uid + "/settings/typo-tolerance" ),
405
405
TypoTolerance .class );
406
406
}
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ public void testUpdateSettingsSort() throws Exception {
107
107
@ Test
108
108
@ DisplayName ("Test update settings changing the typo tolerance" )
109
109
public void testUpdateSettingsTypoTolerance () throws Exception {
110
- Index index = createIndex ("updateSettingsSynonyms " );
110
+ Index index = createIndex ("updateSettingsTypoTolerance " );
111
111
Settings settings = index .getSettings ();
112
112
113
113
TypoTolerance typoTolerance = new TypoTolerance ();
You can’t perform that action at this time.
0 commit comments