get Autocomplete Results CRT
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
Content copied to clipboard
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)
}
}
}
Content copied to clipboard
Parameters
term
the term to search for
facets
additional facets used to refine results
group Id
category facet used to refine results
hidden Fields
show fields that are hidden by default
variations Map
specify which attributes within variations should be returned
section Facets
specify sections for additional facets used to refine results