/// <summary>
        /// Get document list by velocity search.
        /// Get document list by Searching in search sub-system
        /// </summary>
        /// <returns></returns>
        private List <string> GetDocumentsBySearch(DocumentQueryEntity queryEntity)
        {
            queryEntity.ShouldNotBe(null);
            var documentId = new List <string>();

            queryEntity.TransactionName = "ExportStartupWorker - GetDocumentsBySearch";


            var results = (RvwReviewerSearchResults)SearchBo.Search(queryEntity);

            if (results == null || results.Documents == null || !results.Documents.Any())
            {
                return(documentId);
            }
            documentId.AddRange(results.Documents.Select(document => document.DocumentId.DocumentId));
            return(documentId);
        }
        /// <summary>
        /// Generates the message.
        /// </summary>
        /// <returns></returns>
        protected override bool GenerateMessage()
        {
            var searchRecord = new ReviewsetSearchRecord();

            try
            {
                ////Send the document to the pipe to process once it reach the batchsize
                searchRecord.ReviewsetDetails = _reviewSetRecord;
                _docQueryEntity.ShouldNotBe(null);

                searchRecord.QueryEntity        = _docQueryEntity;
                searchRecord.TotalDocumentCount = (int)_totalDocumentCount;
                Send(searchRecord);
                LogMessage(true, "Split Reviewset: Message successfully sent to acquire all the qualified documents");
            }
            catch (Exception ex)
            {
                LogMessage(false, "Split Reviewset: Failed to determine the qualifying documents");
                ex.Trace();
                return(false);
            }
            return(true);
        }