namespace fixes and searchrequest is modified to use elasticsearch client