public ActionResult AttachmentsQuickSearch(AttachmentSearchParameters searchParameters)
 {
     var query = new SearchAttachments(searchParameters);
     var results = Query(query);
     FlattenTextExtract(results);
     return Json(new
     {
         Items = results,
         Skipped = searchParameters.Skip,
         TotalResults = query.Stats.TotalResults
     });
 }
 public SearchAttachments(AttachmentSearchParameters parameters)
 {
     Parameters = parameters;
 }
 public ActionResult Index(AttachmentSearchParameters searchParameters)
 {
     return View(searchParameters ?? new AttachmentSearchParameters());
 }