public JsonResult ReIndex(int bucketSize = 2048, int poolSize = 10) { if (!Core.Services.ReIndexState.IsIndexing) { AggregationService.ReIndex(bucketSize, poolSize); } return(Json(Core.Services.ReIndexState.GetAsStruct())); }