File tree Expand file tree Collapse file tree 4 files changed +14
-3
lines changed
commonMain/kotlin/com/algolia/search
commonTest/kotlin/serialize Expand file tree Collapse file tree 4 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -458,7 +458,14 @@ public data class Query(
458458 @SerialName(KeyPercentileComputation ) var percentileComputation : Boolean? = null ,
459459 /* *
460460 * Overrides the query parameter and performs a more generic search that can be used to find "similar" results.
461+ * Engine default: ""
461462 * [Documentation][https://www.algolia.com/doc/api-reference/api-parameters/similarQuery/?language=kotlin]
462463 */
463- @SerialName(KeySimilarQuery ) var similarQuery : String? = null
464+ @SerialName(KeySimilarQuery ) var similarQuery : String? = null ,
465+ /* *
466+ * Whether this query should be taken into consideration by currently active ABTests.
467+ * Engine default: true
468+ * [Documentation][https://www.algolia.com/doc/api-reference/api-parameters/enableABTest/?language=kotlin]
469+ */
470+ @SerialName(KeyEnableABTest ) var enableABTest : Boolean? = null
464471)
Original file line number Diff line number Diff line change @@ -359,4 +359,5 @@ public const val KeyDegradedQuery = "degradedQuery"
359359public const val KeyGeoPoint = " geoPoint"
360360public const val KeySuburb = " suburb"
361361public const val KeyVillage = " village"
362- public const val KeySimilarQuery = " similarQuery"
362+ public const val KeySimilarQuery = " similarQuery"
363+ public const val KeyEnableABTest = " enableABTest"
Original file line number Diff line number Diff line change @@ -352,5 +352,6 @@ internal class TestKeys {
352352 KeyGeoPoint shouldEqual " geoPoint"
353353 KeyVillage shouldEqual " village"
354354 KeySimilarQuery shouldEqual " similarQuery"
355+ KeyEnableABTest shouldEqual " enableABTest"
355356 }
356357}
Original file line number Diff line number Diff line change @@ -87,7 +87,8 @@ internal class TestQuery : TestSerializer<Query>(Query.serializer()) {
8787 responseFields = listOf (ResponseFields .NbHits ),
8888 maxFacetHits = int,
8989 percentileComputation = boolean,
90- similarQuery = string
90+ similarQuery = string,
91+ enableABTest = boolean
9192 ) to json {
9293 KeyQuery to string
9394 KeyAttributesToRetrieve to attributesJson
@@ -155,6 +156,7 @@ internal class TestQuery : TestSerializer<Query>(Query.serializer()) {
155156 KeyMaxFacetHits to int
156157 KeyPercentileComputation to boolean
157158 KeySimilarQuery to string
159+ KeyEnableABTest to boolean
158160 }
159161 )
160162
You can’t perform that action at this time.
0 commit comments