Allow for a custom analyzer

Default analyzer lowercases everything.
@smn This is currently only overridable for TextField. Do we want to maybe extend this to all field types?