Open search server middleware.