algoliasearch-scala
package is version 2.
This page lists the breaking changes introduced since the previous major release, version 1.
Method changes overview
The following table has links for all methods and their replacementsSearch API client
Version 1 (legacy) | Version 2 (current) | |
---|---|---|
add key | → | client.addApiKey |
clear dictionary | → | client.batchDictionaryEntries |
copy index | → | client.operationIndex |
not available | → | client.operationIndex |
not available | → | client.operationIndex |
delete key | → | client.deleteApiKey |
delete dictionary | → | client.batchDictionaryEntries |
get key | → | client.getApiKey |
list keys | → | client.listApiKeys |
list indices | → | client.listIndices |
move index | → | client.operationIndex |
multipleBatch | → | client.multipleBatch |
multiQueries | → | client.search |
replace dictionary | → | client.batchDictionaryEntries |
restore key | → | client.restoreApiKey |
save dictionary | → | client.batchDictionaryEntries |
update key | → | client.updateApiKey |
index.batch | → | client.batch |
clear index | → | client.clearObjects |
clear rules | → | client.clearRules |
clear synonyms | → | client.clearSynonyms |
not available | → | client.operationIndex |
delete | → | client.deleteIndex |
delete by | → | client.deleteBy |
deleteObject | → | client.deleteObject |
delete objectIds | → | client.deleteObjects |
delete rule | → | client.deleteRule |
delete synonym | → | client.deleteSynonym |
helper.findObject | → | client.searchSingleIndex |
getObject | → | client.getObject |
get objectIds | → | client.getObjects |
get rule | → | client.getRule |
settings of | → | client.getSettings |
get synonym | → | client.getSynonym |
index.getTask | → | client.getTask |
partialUpdateObject | → | client.partialUpdateObject |
partialUpdate objects | → | client.partialUpdateObjects |
not available | → | client.replaceAllObjects |
not available | → | client.saveRules |
not available | → | client.saveSynonyms |
saveObject | → | client.saveObject |
index objects | → | client.saveObjects |
save rule | → | client.saveRule |
saveRules | → | client.saveRules |
save synonym | → | client.saveSynonym |
save synonyms | → | client.saveSynonyms |
search | → | client.searchSingleIndex |
search facet | → | client.searchForFacetValues |
search rules | → | client.searchRules |
search synonyms | → | client.searchSynonyms |
setSettings of | → | client.setSettings |
{operation}.wait | → | client.waitForTask |
Recommend API client
Version 1 (legacy) | Version 2 (current) | |
---|---|---|
get frequentlyBoughtTogether | → | client.getRecommendations |
get recommendations | → | client.getRecommendations |
get relatedProducts | → | client.getRecommendations |
Client imports
The imports for the API clients changed.Scala
No domain-specific language
All operations are methods of theSearchClient
class.
The domain-specific language used in version 1 has been removed.
Wait for tasks
Thewait
method has been removed.
Instead, use one of the following helpers:
waitTask
to wait until indexing operations are donewaitAppTask
to wait for application-level taskswaitForApiKey
to wait for API key operations
Copy or move indices, settings, synonyms, or rules
Use theoperationIndex
method,
which replaces the following methods:
copyIndex
moveIndex
copyRules
copySynonyms
copySettings