[gateway] make search blazing fast
[meta] fix malformed "text" mime type