You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that if the user sets synonyms to null it will not be added to the final body send to updateSettings, and thus, it will not reset the synonyms.
Passing null to an index setting will reset it to its default value.
It may not be possible to do it as we cannot know the difference between a field not present or a field set specifically to null. Nonetheless if it is possible, it should be investigated.
The text was updated successfully, but these errors were encountered:
Description
For example, it is possible to reset the synonyms to it' default value by sending
As the json body of the
updateSettings
method.Unfortunately, looking at this code:
meilisearch-java/src/main/java/com/meilisearch/sdk/Settings.java
Lines 33 to 60 in 04244fa
It appears that if the user sets
synonyms
to null it will not be added to the final body send toupdateSettings
, and thus, it will not reset the synonyms.As per the documentation
It may not be possible to do it as we cannot know the difference between a field not present or a field set specifically to null. Nonetheless if it is possible, it should be investigated.
The text was updated successfully, but these errors were encountered: