getAutocompleteResultsCRT

suspend fun getAutocompleteResultsCRT(    term: String,     facets: List<Pair<String, List<String>>>? = null,     groupId: Int? = null,     hiddenFields: List<String>? = null,     variationsMap: VariationsMap? = null,     sectionFacets: Map<String, List<Pair<String, List<String>>>>? = null): AutocompleteResponse

Returns a list of autocomplete suggestions. This function should be called within a coroutine scope.

Example:

runBlocking {
launch {
try {
val autocompleteResults = constructorIo.getAutocompleteResultsCRT("Dav")
// Do something with autocompleteResults
} catch (e: Exception) {
println(e)
}
}
}

Parameters

term

the term to search for

facets

additional facets used to refine results

groupId

category facet used to refine results

hiddenFields

show fields that are hidden by default

variationsMap

specify which attributes within variations should be returned

sectionFacets

specify sections for additional facets used to refine results