Package io.constructor.data.model.search

Types

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class Redirect(    @Json(name = "data") val data: RedirectData,     @Json(name = "matched_terms") val matchedTerms: List<String>?,     @Json(name = "matched_user_segments") val matchedUserSegments: String?) : Serializable

Models search redirects

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class RedirectData(    @Json(name = "url") val url: String?,     @Json(name = "rule_id") val rule_id: Int?,     @Json(name = "match_id") val match_id: Int?) : Serializable

Models search redirect metadata

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class SearchResponse(    @Json(name = "response") val response: SearchResponseInner?,     @Json(name = "request") val request: Map<String, Any?>?,     @Json(name = "result_id") val resultId: String?,     var rawData: String?) : Serializable

Models search response

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class SearchResponseInner(    @Json(name = "facets") val facets: List<FilterFacet>?,     @Json(name = "groups") val groups: List<FilterGroup>?,     @Json(name = "results") val results: List<Result>?,     @Json(name = "sort_options") val filterSortOptions: List<FilterSortOption>? = null,     @Json(name = "total_num_results") val resultCount: Int?,     @Json(name = "redirect") val redirect: Redirect?,     @Json(name = "result_sources") val resultSources: ResultSources?,     @Json(name = "refined_content") val refinedContent: List<RefinedContent>?) : Serializable

Models search response details