@@ -260,6 +260,18 @@ update_displayed_attributes_1: |-
260260 });
261261reset_displayed_attributes_1 : |-
262262 client.index("movies").resetDisplayedAttributesSettings();
263+ getting_started_typo_tolerance : |-
264+ HashMap<String, Integer> minWordSizeTypos =
265+ new HashMap<String, Integer>() {
266+ {
267+ put("oneTypo", 4);
268+ }
269+ };
270+
271+ TypoTolerance typoTolerance = new TypoTolerance();
272+ typoTolerance.setMinWordSizeForTypos(minWordSizeTypos);
273+
274+ client.index("movies").updateTypoToleranceSettings(typoTolerance);
263275get_typo_tolerance_1 :
264276 client.index("books").getTypoToleranceSettings();
265277update_typo_tolerance_1 : |-
@@ -311,7 +323,7 @@ update_non_separator_tokens_1: |-
311323 String[] newSeparatorTokens = { "@", "#" };
312324 client.index("articles").updateNonSeparatorTokensSettings(newSeparatorTokens);
313325reset_non_separator_tokens_1 : |-
314- client.index("articles").resetNonSeparatorTokensSettings();
326+ client.index("articles").resetNonSeparatorTokensSettings();
315327get_dictionary_1 : |-
316328 client.index("books").getDictionarySettings();
317329update_dictionary_1 : |-
@@ -511,9 +523,9 @@ search_parameter_guide_facet_stats_1: |-
511523faceted_search_update_settings_1 :
512524 client.index("movie_ratings").updateFilterableAttributesSettings(new String[]
513525 {
514- " genres" ,
515- " director" ,
516- " language"
526+ " genres" ,
527+ " director" ,
528+ " language"
517529 });
518530faceted_search_walkthrough_filter_1 : |-
519531 SearchRequest searchRequest =
@@ -681,10 +693,9 @@ multi_search_1: |-
681693 multiIndexSearch.addQuery(new IndexSearchRequest("movie_ratings").setQuery("us"));
682694
683695 client.multiSearch(multiSearchRequest);
684- get_similar_post_1 :
685- SimilarDocumentRequest query = new SimilarDocumentRequest()
686- .setId("143")
687- .setEmbedder("manual");
696+ get_similar_post_1 : SimilarDocumentRequest query = new SimilarDocumentRequest()
697+ .setId("143")
698+ .setEmbedder("manual");
688699 client.index("movies").searchSimilarDocuments(query)
689700search_parameter_reference_distinct_1 : |-
690701 SearchRequest searchRequest = SearchRequest.builder().q("QUERY TERMS").distinct("ATTRIBUTE_A").build();
@@ -720,3 +731,23 @@ compact_index_1: |-
720731 client.index("INDEX_NAME").compact();
721732rename_an_index_1 : |-
722733 client.updateIndex("indexA", null, "indexB");
734+ get_webhooks_1 : |-
735+ client.getWebhook();
736+ get_webhook_1 : |-
737+ client.getWebhook();
738+ create_webhook_1 : |-
739+ HashMap<String, Object> headers = new HashMap<>();
740+ headers.put("authorization", "MASTER_KEY");
741+ headers.put("referer", "http://example.com");
742+ CreateUpdateWebhookRequest webhookReq1 = new CreateUpdateWebhookRequest("http://webiste.com", headers);
743+
744+ Webhook webhook = client.createWebhook();
745+ update_webhook_1 : |-
746+ Webhook webhook = this.client.createWebhook(webhookReq1);
747+ HashMap<String, Object> headers = new HashMap<>();
748+ headers.put("referer", null);
749+ CreateUpdateWebhookRequest webhookReq2 = new CreateUpdateWebhookRequest(webhook.getUrl(), headers);
750+
751+ Webhook updated_webhook = this.client.updateWebhook(webhook.getUuid(), webhookReq2);
752+ delete_webhook_1 : |-
753+ this.client.deleteWebhook("WEBHOOK_UUID");
0 commit comments