     /// This parameter control how the exact ranking criterion is computed when the query contains one word.
     public var exactOnSingleWordQuery: ExactOnSingleWordQuery? {
         get {
-            if let value = self["exactOnSingleWordQuery"] {
-                return ExactOnSingleWordQuery(rawValue: value)
-            } else {
-                return nil
-            }
+            guard let value = self["exactOnSingleWordQuery"] else { return nil }
+            
+            return ExactOnSingleWordQuery(rawValue: value)
         }
         set {
             self["exactOnSingleWordQuery"] = newValue?.rawValue

    /// - `prefixNone`: no query word is interpreted as a prefix. This option is not recommended.
    public var queryType: QueryType? {
        get {
            if let value = self["queryType"] {
                return QueryType(rawValue: value)
            } else {
                return nil
            }
        }
        set {
            self["queryType"] = newValue?.rawValue

    /// Controls how the facet values are sorted within each faceted attribute.
    public var sortFacetValuesBy: SortFacetValuesBy? {
        get {
            guard let value = self["sortFacetValuesBy"] else { return nil }
            
            return SortFacetValuesBy(rawValue: value)
        }
        set {
            self["sortFacetValuesBy"] = newValue?.rawValue
