algolia / algoliasearch-client-java

⚡️ A fully-featured and blazing-fast Java API client to interact with Algolia.
https://www.algolia.com/doc/api-client/getting-started/install/java/
MIT License
46 stars 33 forks source link

Ensure correct serialization of searchSynonyms' type query parameter #674

Closed aseure closed 4 years ago

aseure commented 4 years ago

When performing a index.searchSynonyms() call, a type query parameter can be passed to restrict the type(s) of synonyms one wants to search for.

@maxiloc reported us that the Java implementation is accepting an array of strings for this parameter. However, the engine only accepts a comma-separated string for this. We then need to double check the implementation of the serialization of this parameter and provide a fix if needed.