Skip to main content
The latest major version of the 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 replacements

Search API client

Version 1 (legacy)Version 2 (current)
add keyclient.addApiKey
clear dictionaryclient.batchDictionaryEntries
copy indexclient.operationIndex
not availableclient.operationIndex
not availableclient.operationIndex
delete keyclient.deleteApiKey
delete dictionaryclient.batchDictionaryEntries
get keyclient.getApiKey
list keysclient.listApiKeys
list indicesclient.listIndices
move indexclient.operationIndex
multipleBatchclient.multipleBatch
multiQueriesclient.search
replace dictionaryclient.batchDictionaryEntries
restore keyclient.restoreApiKey
save dictionaryclient.batchDictionaryEntries
update keyclient.updateApiKey
index.batchclient.batch
clear indexclient.clearObjects
clear rulesclient.clearRules
clear synonymsclient.clearSynonyms
not availableclient.operationIndex
deleteclient.deleteIndex
delete byclient.deleteBy
deleteObjectclient.deleteObject
delete objectIdsclient.deleteObjects
delete ruleclient.deleteRule
delete synonymclient.deleteSynonym
helper.findObjectclient.searchSingleIndex
getObjectclient.getObject
get objectIdsclient.getObjects
get ruleclient.getRule
settings ofclient.getSettings
get synonymclient.getSynonym
index.getTaskclient.getTask
partialUpdateObjectclient.partialUpdateObject
partialUpdate objectsclient.partialUpdateObjects
not availableclient.replaceAllObjects
not availableclient.saveRules
not availableclient.saveSynonyms
saveObjectclient.saveObject
index objectsclient.saveObjects
save ruleclient.saveRule
saveRulesclient.saveRules
save synonymclient.saveSynonym
save synonymsclient.saveSynonyms
searchclient.searchSingleIndex
search facetclient.searchForFacetValues
search rulesclient.searchRules
search synonymsclient.searchSynonyms
setSettings ofclient.setSettings
{operation}.waitclient.waitForTask

Recommend API client

Version 1 (legacy)Version 2 (current)
get frequentlyBoughtTogetherclient.getRecommendations
get recommendationsclient.getRecommendations
get relatedProductsclient.getRecommendations

Client imports

The imports for the API clients changed.
Scala
// Search API
import algoliasearch.api.SearchClient
// Recommend API
import algoliasearch.api.RecommendClient
// A/B testing API
import algoliasearch.api.AbtestingClient
// Analytics API
import algoliasearch.api.AnalyticsClient
// Ingestion API
import algoliasearch.api.IngestionClient
// Insights API
import algoliasearch.api.InsightsClient
// Monitoring API
import algoliasearch.api.MonitoringClient
// Personalization API
import algoliasearch.api.PersonalizationClient
// Query Suggestions API
import algoliasearch.api.QuerySuggestionsClient
// Usage API
import algoliasearch.api.UsageClient

No domain-specific language

All operations are methods of the SearchClient class. The domain-specific language used in version 1 has been removed.

Wait for tasks

The wait method has been removed. Instead, use one of the following helpers:

Copy or move indices, settings, synonyms, or rules

Use the operationIndex method, which replaces the following methods:
  • copyIndex
  • moveIndex
  • copyRules
  • copySynonyms
  • copySettings
I