Skip to content

Commit

Permalink
added javadoc explanation to handler methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Barabasbalazs committed Oct 31, 2024
1 parent 7207d2f commit 26154ef
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/main/java/com/meilisearch/sdk/SettingsHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,15 @@ LocalizedAttribute[] getLocalizedAttributes(String uid) throws MeilisearchExcept
LocalizedAttribute[].class);
}

// javadoc
/**
* Updates the localized attributes of the index.
*
* @param uid Index identifier
* @param localizedAttributes an array of LocalizedAttributes that contain patterns and locales
* settings
* @return TaskInfo instance
* @throws MeilisearchException if an error occurs
*/
TaskInfo updateLocalizedAttributesSettings(String uid, LocalizedAttribute[] localizedAttributes)
throws MeilisearchException {
return httpClient.put(
Expand All @@ -291,7 +299,13 @@ TaskInfo updateLocalizedAttributesSettings(String uid, LocalizedAttribute[] loca
TaskInfo.class);
}

// javadoc
/**
* Resets the localized attributes of the index
*
* @param uid Index identifier
* @return TaskInfo instance
* @throws MeilisearchException if an error occurs
*/
TaskInfo resetLocalizedAttributesSettings(String uid) throws MeilisearchException {
return httpClient.delete(
settingsPath(uid).addSubroute("localized-attributes").getURL(), TaskInfo.class);
Expand Down

0 comments on commit 26154ef

Please sign in to comment.