public BatchSearchResponse BatchSearch([FromBody] BatchSearchRequest request)
 {
     return(new BatchSearchResponse
     {
         ReferenceId = request.ReferenceId,
         SearchResults = _searchIndexBusiness.Search(request),
         Success = true
     });
 }
Beispiel #2
0
        public IEnumerable <SearchResult> Search(IPersonSearchRequest request)
        {
            var searchFields = ExtractSearchFields(request);
            var searchTokens = ExtractSearchTokens(request);

            return(_searchIndexBusiness.Search(_personSearchIndex, searchFields, searchTokens, request.TopResultCount, explain: request.Explain));
        }