File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
src/commonMain/kotlin/com/algolia/search Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import com.algolia.search.serialize.JsonNonStrict
2121import com.algolia.search.serialize.KSerializerFacetMap
2222import com.algolia.search.serialize.KSerializerPoint
2323import com.algolia.search.serialize.KeyAbTestVariantID
24+ import com.algolia.search.serialize.KeyAppliedRules
2425import com.algolia.search.serialize.KeyAroundLatLng
2526import com.algolia.search.serialize.KeyAutomaticRadius
2627import com.algolia.search.serialize.KeyCursor
@@ -211,7 +212,11 @@ public data class ResponseSearch(
211212 /* *
212213 * Meta-information as to how the query was processed.
213214 */
214- @SerialName(KeyExplain ) val explainOrNull : Explain ? = null
215+ @SerialName(KeyExplain ) val explainOrNull : Explain ? = null ,
216+ /* *
217+ * The rules applied to the query.
218+ */
219+ @SerialName(KeyAppliedRules ) val appliedRulesOrNull : List <JsonObject >? = null
215220) {
216221
217222 public val hits: List <Hit >
@@ -304,6 +309,9 @@ public data class ResponseSearch(
304309 public val explain: Explain
305310 get() = explainOrNull!!
306311
312+ public val appliedRules: List <JsonObject >
313+ get() = appliedRulesOrNull!!
314+
307315 @Deprecated(
308316 message = " Use getObjectPosition instead." ,
309317 replaceWith = ReplaceWith (" getObjectPosition(objectID)" ),
Original file line number Diff line number Diff line change @@ -198,3 +198,4 @@ public const val KeyUser_Token = "user_token"
198198public const val KeyPersonalization = " personalization"
199199public const val KeyRankingScore = " rankingScore"
200200public const val KeyFiltersScore = " filtersScore"
201+ public const val KeyAppliedRules = " appliedRules"
You can’t perform that action at this time.
0 commit comments