I've been learning go and I am able to work with some basic MongoDB functions via the mongo-driver I am unable to figure out the search functions. I believe this is due to the interpreter adding quotes around my search.
    searchQuery := "/" + params.Get("q") + "/"
    filter := bson.D{
        {"$and",
            bson.A{
                bson.D{
                    {"title", searchQuery},
                },
            },
        },
    }
cur, currErr := collection.Find(ctx, filter)
I am expecting to add a partial string to the query string and have return all of the documents that match. If I could query the search index i've added that would be even better. Either way I am unable to get it to work.
