public async Task <IActionResult> Search([FromQuery] FilterProductViewModel filter)
 {
     try
     {
         return(Ok(await search.Find(filter)));
     }
     catch (Exception ex)
     {
         logger.Error($"Product/Search::{ex.Message}::{ex.InnerException}::{ex.StackTrace}::{ex.Data}");
         return(StatusCode((int)HttpStatusCode.ExpectationFailed, ExceptionErrors.Extract(ex)));
     }
 }
        public async Task <IActionResult> ReIndexUpdate()
        {
            try
            {
                await search.ReIndexUpdate();

                return(Ok());
            }
            catch (Exception ex)
            {
                logger.Error($"Product/Search::{ex.Message}::{ex.InnerException}::{ex.StackTrace}::{ex.Data}");
                return(StatusCode((int)HttpStatusCode.ExpectationFailed, ExceptionErrors.Extract(ex)));
            }
        }