     public static func == (lhs: MatchAllQuery, rhs: MatchAllQuery) -> Bool {
         return lhs.queryType.isEqualTo(rhs.queryType)
             && lhs.boost == rhs.boost
-            && rhs.name == rhs.name
+            && lhs.name == rhs.name
     }
 }
 

    public var boost: Decimal?
    public var name: String?

    public init(boost: Decimal? = nil, name _: String? = nil) {
        self.boost = boost
    }

    internal init(withBuilder builder: MatchAllQueryBuilder) throws {

    public static func == (lhs: MatchNoneQuery, rhs: MatchNoneQuery) -> Bool {
        return lhs.queryType.isEqualTo(rhs.queryType)
            && lhs.boost == rhs.boost
            && lhs.name == rhs.name
    }
}
