If field contains uppercase search

Maybe I didn't state my question correctly, or I'm just not sure how an analyzer would be used here but I'm looking for a query like:

GET _search
{
"name.keyword": "contains caps"
}

I'm not sure how an analyzer would help with that?