public async Task <ActionResult <IEnumerable <ConceptHint> > > SearchHints( [FromQuery] Guid?rootParentId, [FromQuery] string term, [FromServices] IConceptHintSearchEngine searchEngine ) { log.LogInformation("Searching Concepts By Term:{Term}", term); try { var terms = term.Split(' '); var hints = await searchEngine.SearchAsync(rootParentId, terms); return(Ok(hints)); } catch (Exception ex) { log.LogError("Could not search concept hints. Term:{Term} Error:{Error}", term, ex.ToString()); return(StatusCode(StatusCodes.Status500InternalServerError)); } }