Chat search case insensitive

Hello!

We’re adding a chat search feature. Our problem is that this search funcionality is case sensitive, but we want case insensitive results.
For example, the keywords “Happy” and “happy” should return the same results.

Do you know how can we achieve this?

This is our implementation:

query = SBDMessageSearchQuery.create { builder in
    builder.keyword = text
    builder.channelUrl = self.channel.channelUrl
    builder.order = .timeStamp
}

query?.loadNextPage { (messages, error) in
    guard error == nil else {        
        return
    }

    // ...
}

Thank you!

Now I’m using advanced query, but still it doesn’t work:

        let keyword = "\(text) OR \(text.lowercased())"
        
        query = SBDMessageSearchQuery.create { builder in
            builder.keyword = keyword
            builder.channelUrl = self.channel.channelUrl
            builder.order = .timeStamp
            builder.advancedQuery = true
            builder.exactMatch = false
        }