diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/AbtestingClient.java b/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/AbtestingClient.java index df4165e5cd..a4272b3d96 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/AbtestingClient.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/AbtestingClient.java @@ -236,7 +236,7 @@ public Object del(String path, Map parameters) } public Object del(String path) throws AlgoliaRuntimeException { - return this.del(path, new HashMap<>()); + return this.del(path, null); } /** @@ -429,7 +429,7 @@ public Object get(String path, Map parameters) } public Object get(String path) throws AlgoliaRuntimeException { - return this.get(path, new HashMap<>()); + return this.get(path, null); } /** @@ -615,7 +615,7 @@ public ListABTestsResponse listABTests(Integer offset, Integer limit) } public ListABTestsResponse listABTests() throws AlgoliaRuntimeException { - return this.listABTests(0, 10); + return this.listABTests(null, null); } /** @@ -725,7 +725,7 @@ public Object post(String path, Map parameters, Object body) } public Object post(String path) throws AlgoliaRuntimeException { - return this.post(path, new HashMap<>(), null); + return this.post(path, null, null); } /** @@ -834,7 +834,7 @@ public Object put(String path, Map parameters, Object body) } public Object put(String path) throws AlgoliaRuntimeException { - return this.put(path, new HashMap<>(), null); + return this.put(path, null, null); } /** diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/AnalyticsClient.java b/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/AnalyticsClient.java index eec6088973..dfa13c043a 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/AnalyticsClient.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/AnalyticsClient.java @@ -147,7 +147,7 @@ public Object del(String path, Map parameters) } public Object del(String path) throws AlgoliaRuntimeException { - return this.del(path, new HashMap<>()); + return this.del(path, null); } /** @@ -251,7 +251,7 @@ public Object get(String path, Map parameters) } public Object get(String path) throws AlgoliaRuntimeException { - return this.get(path, new HashMap<>()); + return this.get(path, null); } /** @@ -1475,7 +1475,7 @@ public GetSearchesNoClicksResponse getSearchesNoClicks( public GetSearchesNoClicksResponse getSearchesNoClicks(String index) throws AlgoliaRuntimeException { - return this.getSearchesNoClicks(index, null, null, 10, 0, null); + return this.getSearchesNoClicks(index, null, null, null, null, null); } /** @@ -1661,7 +1661,7 @@ public GetSearchesNoResultsResponse getSearchesNoResults( public GetSearchesNoResultsResponse getSearchesNoResults(String index) throws AlgoliaRuntimeException { - return this.getSearchesNoResults(index, null, null, 10, 0, null); + return this.getSearchesNoResults(index, null, null, null, null, null); } /** @@ -1938,7 +1938,7 @@ public GetTopCountriesResponse getTopCountries( public GetTopCountriesResponse getTopCountries(String index) throws AlgoliaRuntimeException { - return this.getTopCountries(index, null, null, 10, 0, null); + return this.getTopCountries(index, null, null, null, null, null); } /** @@ -2133,7 +2133,15 @@ public GetTopFilterAttributesResponse getTopFilterAttributes( public GetTopFilterAttributesResponse getTopFilterAttributes(String index) throws AlgoliaRuntimeException { - return this.getTopFilterAttributes(index, null, null, null, 10, 0, null); + return this.getTopFilterAttributes( + index, + null, + null, + null, + null, + null, + null + ); } /** @@ -2358,8 +2366,8 @@ public GetTopFilterForAttributeResponse getTopFilterForAttribute( null, null, null, - 10, - 0, + null, + null, null ); } @@ -2564,7 +2572,15 @@ public GetTopFiltersNoResultsResponse getTopFiltersNoResults( public GetTopFiltersNoResultsResponse getTopFiltersNoResults(String index) throws AlgoliaRuntimeException { - return this.getTopFiltersNoResults(index, null, null, null, 10, 0, null); + return this.getTopFiltersNoResults( + index, + null, + null, + null, + null, + null, + null + ); } /** @@ -2772,7 +2788,7 @@ public GetTopHitsResponse getTopHits( public GetTopHitsResponse getTopHits(String index) throws AlgoliaRuntimeException { - return this.getTopHits(index, null, false, null, null, 10, 0, null); + return this.getTopHits(index, null, null, null, null, null, null, null); } /** @@ -2998,13 +3014,13 @@ public GetTopSearchesResponse getTopSearches(String index) throws AlgoliaRuntimeException { return this.getTopSearches( index, - false, null, null, - OrderBy.SEARCH_COUNT, - Direction.ASC, - 10, - 0, + null, + null, + null, + null, + null, null ); } @@ -3294,7 +3310,7 @@ public Object post(String path, Map parameters, Object body) } public Object post(String path) throws AlgoliaRuntimeException { - return this.post(path, new HashMap<>(), null); + return this.post(path, null, null); } /** @@ -3403,7 +3419,7 @@ public Object put(String path, Map parameters, Object body) } public Object put(String path) throws AlgoliaRuntimeException { - return this.put(path, new HashMap<>(), null); + return this.put(path, null, null); } /** diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/InsightsClient.java b/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/InsightsClient.java index f0c1f48709..2d3054ab3c 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/InsightsClient.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/InsightsClient.java @@ -147,7 +147,7 @@ public Object del(String path, Map parameters) } public Object del(String path) throws AlgoliaRuntimeException { - return this.del(path, new HashMap<>()); + return this.del(path, null); } /** @@ -251,7 +251,7 @@ public Object get(String path, Map parameters) } public Object get(String path) throws AlgoliaRuntimeException { - return this.get(path, new HashMap<>()); + return this.get(path, null); } /** @@ -358,7 +358,7 @@ public Object post(String path, Map parameters, Object body) } public Object post(String path) throws AlgoliaRuntimeException { - return this.post(path, new HashMap<>(), null); + return this.post(path, null, null); } /** @@ -552,7 +552,7 @@ public Object put(String path, Map parameters, Object body) } public Object put(String path) throws AlgoliaRuntimeException { - return this.put(path, new HashMap<>(), null); + return this.put(path, null, null); } /** diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/PersonalizationClient.java b/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/PersonalizationClient.java index 57abf93cbf..62a6bc3e18 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/PersonalizationClient.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/PersonalizationClient.java @@ -149,7 +149,7 @@ public Object del(String path, Map parameters) } public Object del(String path) throws AlgoliaRuntimeException { - return this.del(path, new HashMap<>()); + return this.del(path, null); } /** @@ -354,7 +354,7 @@ public Object get(String path, Map parameters) } public Object get(String path) throws AlgoliaRuntimeException { - return this.get(path, new HashMap<>()); + return this.get(path, null); } /** @@ -641,7 +641,7 @@ public Object post(String path, Map parameters, Object body) } public Object post(String path) throws AlgoliaRuntimeException { - return this.post(path, new HashMap<>(), null); + return this.post(path, null, null); } /** @@ -750,7 +750,7 @@ public Object put(String path, Map parameters, Object body) } public Object put(String path) throws AlgoliaRuntimeException { - return this.put(path, new HashMap<>(), null); + return this.put(path, null, null); } /** diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/PredictClient.java b/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/PredictClient.java index 916655b7fa..4168c7e384 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/PredictClient.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/PredictClient.java @@ -142,7 +142,7 @@ public Object del(String path, Map parameters) } public Object del(String path) throws AlgoliaRuntimeException { - return this.del(path, new HashMap<>()); + return this.del(path, null); } /** @@ -355,7 +355,7 @@ public Object get(String path, Map parameters) } public Object get(String path) throws AlgoliaRuntimeException { - return this.get(path, new HashMap<>()); + return this.get(path, null); } /** @@ -462,7 +462,7 @@ public Object post(String path, Map parameters, Object body) } public Object post(String path) throws AlgoliaRuntimeException { - return this.post(path, new HashMap<>(), null); + return this.post(path, null, null); } /** @@ -571,7 +571,7 @@ public Object put(String path, Map parameters, Object body) } public Object put(String path) throws AlgoliaRuntimeException { - return this.put(path, new HashMap<>(), null); + return this.put(path, null, null); } /** diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/QuerySuggestionsClient.java b/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/QuerySuggestionsClient.java index 46e2fc740e..a147e71ef0 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/QuerySuggestionsClient.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/QuerySuggestionsClient.java @@ -246,7 +246,7 @@ public Object del(String path, Map parameters) } public Object del(String path) throws AlgoliaRuntimeException { - return this.del(path, new HashMap<>()); + return this.del(path, null); } /** @@ -445,7 +445,7 @@ public Object get(String path, Map parameters) } public Object get(String path) throws AlgoliaRuntimeException { - return this.get(path, new HashMap<>()); + return this.get(path, null); } /** @@ -906,7 +906,7 @@ public Object post(String path, Map parameters, Object body) } public Object post(String path) throws AlgoliaRuntimeException { - return this.post(path, new HashMap<>(), null); + return this.post(path, null, null); } /** @@ -1015,7 +1015,7 @@ public Object put(String path, Map parameters, Object body) } public Object put(String path) throws AlgoliaRuntimeException { - return this.put(path, new HashMap<>(), null); + return this.put(path, null, null); } /** diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/RecommendClient.java b/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/RecommendClient.java index 723d0b1867..a547222542 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/RecommendClient.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/RecommendClient.java @@ -181,7 +181,7 @@ public Object del(String path, Map parameters) } public Object del(String path) throws AlgoliaRuntimeException { - return this.del(path, new HashMap<>()); + return this.del(path, null); } /** @@ -285,7 +285,7 @@ public Object get(String path, Map parameters) } public Object get(String path) throws AlgoliaRuntimeException { - return this.get(path, new HashMap<>()); + return this.get(path, null); } /** @@ -488,7 +488,7 @@ public Object post(String path, Map parameters, Object body) } public Object post(String path) throws AlgoliaRuntimeException { - return this.post(path, new HashMap<>(), null); + return this.post(path, null, null); } /** @@ -597,7 +597,7 @@ public Object put(String path, Map parameters, Object body) } public Object put(String path) throws AlgoliaRuntimeException { - return this.put(path, new HashMap<>(), null); + return this.put(path, null, null); } /** diff --git a/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/SearchClient.java b/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/SearchClient.java index 61d817432e..6b7d91a7ce 100644 --- a/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/SearchClient.java +++ b/clients/algoliasearch-client-java-2/algoliasearch-core/src/com/algolia/api/SearchClient.java @@ -1536,7 +1536,7 @@ public Object del(String path, Map parameters) } public Object del(String path) throws AlgoliaRuntimeException { - return this.del(path, new HashMap<>()); + return this.del(path, null); } /** @@ -2382,7 +2382,7 @@ public Object get(String path, Map parameters) } public Object get(String path) throws AlgoliaRuntimeException { - return this.get(path, new HashMap<>()); + return this.get(path, null); } /** @@ -2739,7 +2739,7 @@ public GetLogsResponse getLogs( } public GetLogsResponse getLogs() throws AlgoliaRuntimeException { - return this.getLogs(0, 10, null, LogType.ALL); + return this.getLogs(null, null, null, null); } /** @@ -2878,7 +2878,7 @@ public Map getObject( public Map getObject(String indexName, String objectID) throws AlgoliaRuntimeException { - return this.getObject(indexName, objectID, new ArrayList<>()); + return this.getObject(indexName, objectID, null); } /** @@ -4035,7 +4035,7 @@ public ListUserIdsResponse listUserIds(Integer page, Integer hitsPerPage) } public ListUserIdsResponse listUserIds() throws AlgoliaRuntimeException { - return this.listUserIds(null, 100); + return this.listUserIds(null, null); } /** @@ -4487,7 +4487,7 @@ public UpdatedAtWithObjectIdResponse partialUpdateObject( indexName, objectID, attributeOrBuiltInOperation, - true + null ); } @@ -4609,7 +4609,7 @@ public Object post(String path, Map parameters, Object body) } public Object post(String path) throws AlgoliaRuntimeException { - return this.post(path, new HashMap<>(), null); + return this.post(path, null, null); } /** @@ -4718,7 +4718,7 @@ public Object put(String path, Map parameters, Object body) } public Object put(String path) throws AlgoliaRuntimeException { - return this.put(path, new HashMap<>(), null); + return this.put(path, null, null); } /** @@ -6169,7 +6169,7 @@ public SearchSynonymsResponse searchSynonyms( public SearchSynonymsResponse searchSynonyms(String indexName) throws AlgoliaRuntimeException { - return this.searchSynonyms(indexName, "", null, 0, 100); + return this.searchSynonyms(indexName, null, null, null, null); } /**