add metadata query + limit support for search query