Skip to content

Commit f6ae653

Browse files
authored
Add enablePersonalization method to the query (#598)
1 parent 851b224 commit f6ae653

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Sources/AlgoliaSearch-Client/Query.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,12 @@ open class Query: AbstractQuery {
208208
get { return Query.parseBool(self["clickAnalytics"]) }
209209
set { self["clickAnalytics"] = Query.buildBool(newValue) }
210210
}
211+
212+
/// If set to false, this query will not be taken into account for the Personalization.
213+
public var enablePersonalization: Bool? {
214+
get { return Query.parseBool(self["enablePersonalization"]) }
215+
set { self["enablePersonalization"] = Query.buildBool(newValue) }
216+
}
211217

212218
/// If set, tag your query with the specified identifiers. Tags can then be used in the Analytics to analyze a
213219
/// subset of searches only.
@@ -967,6 +973,12 @@ open class Query: AbstractQuery {
967973
get { return AbstractQuery.toNumber(clickAnalytics) }
968974
set { clickAnalytics = newValue?.boolValue }
969975
}
976+
977+
@objc(enablePersonalization)
978+
public var z_objc_enablePersonalization: NSNumber? {
979+
get { return AbstractQuery.toNumber(enablePersonalization) }
980+
set { enablePersonalization = newValue?.boolValue }
981+
}
970982

971983
@objc(synonyms)
972984
public var z_objc_synonyms: NSNumber? {

0 commit comments

Comments
 (0)