Mapvalues query using golang

Hi @sid1, welcome to the community!

From the way the secondary index was created, it appears that this is a map in the bin that you are looking to index, is that correct? If so, you are most likely missing the ctx in you stmt.SetFilter().

It would look something like:

After looking over this again, I think I’ve misunderstood what you’re looking at. If this is a bin with a map and you are looking for records that contain "FL" in the map then this is what you would need:

stmt.SetFilter(as.NewContainsFilter("shopping_cart", as.ICT_MAPVALUES, "FL")

Could you provide a look at the record structure that you are using? That will help to provide a more complete answer. Thanks!