All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.algolia.client.model.recommend.RankingInfo.kt Maven / Gradle / Ivy

Go to download

"Algolia is a powerful search-as-a-service solution, made easy to use with API clients, UI libraries, and pre-built integrations. Algolia API Client for Kotlin lets you easily use the Algolia Search REST API from your JVM project, such as Android or backend implementations."

There is a newer version: 3.10.1
Show newest version
/** Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. */
package com.algolia.client.model.recommend

import kotlinx.serialization.*
import kotlinx.serialization.json.*

/**
 * RankingInfo
 *
 * @param filters This field is reserved for advanced usage.
 * @param firstMatchedWord Position of the most important matched attribute in the attributes to index list.
 * @param geoDistance Distance between the geo location in the search query and the best matching geo location in the record, divided by the geo precision (in meters).
 * @param nbExactWords Number of exactly matched words.
 * @param nbTypos Number of typos encountered when matching the record.
 * @param promoted Present and set to true if a Rule promoted the hit.
 * @param userScore Custom ranking for the object, expressed as a single integer value.
 * @param words Number of matched words, including prefixes and typos.
 * @param geoPrecision Precision used when computing the geo distance, in meters.
 * @param matchedGeoLocation
 * @param personalization
 * @param proximityDistance When the query contains more than one word, the sum of the distances between matched words (in meters).
 * @param promotedByReRanking Wether the record are promoted by the re-ranking strategy.
 */
@Serializable
public data class RankingInfo(

  /** This field is reserved for advanced usage. */
  @SerialName(value = "filters") val filters: Int,

  /** Position of the most important matched attribute in the attributes to index list. */
  @SerialName(value = "firstMatchedWord") val firstMatchedWord: Int,

  /** Distance between the geo location in the search query and the best matching geo location in the record, divided by the geo precision (in meters). */
  @SerialName(value = "geoDistance") val geoDistance: Int,

  /** Number of exactly matched words. */
  @SerialName(value = "nbExactWords") val nbExactWords: Int,

  /** Number of typos encountered when matching the record. */
  @SerialName(value = "nbTypos") val nbTypos: Int,

  /** Present and set to true if a Rule promoted the hit. */
  @SerialName(value = "promoted") val promoted: Boolean,

  /** Custom ranking for the object, expressed as a single integer value. */
  @SerialName(value = "userScore") val userScore: Int,

  /** Number of matched words, including prefixes and typos. */
  @SerialName(value = "words") val words: Int,

  /** Precision used when computing the geo distance, in meters. */
  @SerialName(value = "geoPrecision") val geoPrecision: Int? = null,

  @SerialName(value = "matchedGeoLocation") val matchedGeoLocation: MatchedGeoLocation? = null,

  @SerialName(value = "personalization") val personalization: Personalization? = null,

  /** When the query contains more than one word, the sum of the distances between matched words (in meters). */
  @SerialName(value = "proximityDistance") val proximityDistance: Int? = null,

  /** Wether the record are promoted by the re-ranking strategy. */
  @SerialName(value = "promotedByReRanking") val promotedByReRanking: Boolean? = null,
)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy