added the following to accept json queries: QueryBuilders.setQuery(QueryBuilders.wrapperQuery("{\"match_all\": {}}"))