Example #1
0
        private static async Task CreateWorkspaceAsync()
        {
            Console2.WriteStartHeader("Create Workspace");
            Stopwatch stopwatch = new Stopwatch();

            stopwatch.Start();

            WorkspaceHelper workspaceHelper = new WorkspaceHelper(_connectionManager.RsapiClient);

            _workspaceArtifactId = await workspaceHelper.QueryTemplateAndCreateWorkspaceAsync();

            // Create the Responsive - E2E Field
            await RESTSearchHelper.CreateResponsiveFieldAsync(_httpClient, _workspaceArtifactId);

            stopwatch.Stop();
            DisplayTimeElapsed(stopwatch.Elapsed);
        }
Example #2
0
        private static async Task CreateAndBuildDtSearch()
        {
            Console2.WriteStartHeader("Create Search");
            Stopwatch stopwatch = new Stopwatch();

            stopwatch.Start();

            // Create Keyword Search
            int seedSearchId = await RESTSearchHelper.CreateKeywordSearchAsync(_httpClient, _workspaceArtifactId);

            // Create dtSearch Index
            _dtSearchIndexId = await RESTSearchHelper.CreateDtSearchIndexAsync(_httpClient, _workspaceArtifactId, seedSearchId);

            // Build dtSearch Index
            await RESTSearchHelper.BuildDtSearchIndexAsync(_httpClient, _workspaceArtifactId, _dtSearchIndexId);

            // Create dtSearch
            _dtSearchArtifactId = await RESTSearchHelper.CreateDtSearchAsync(_httpClient, _workspaceArtifactId, _dtSearchIndexId, Constants.Workspace.EXTRACTED_TEXT_FIELD_NAME);

            stopwatch.Stop();
            DisplayTimeElapsed(stopwatch.Elapsed);
        }
Example #3
0
        private static async Task CreateAndRunImagingSetAsync()
        {
            Console2.WriteStartHeader("Imaging");
            Stopwatch stopwatch = new Stopwatch();

            stopwatch.Start();

            //	Perform another search for documents where responsive = yes
            int savedSearchId = await RESTSearchHelper.CreateDtSearchAsync(_httpClient, _workspaceArtifactId, _dtSearchIndexId, Constants.Workspace.ResponsiveField.Name);

            // Create Imaging Profile and Set
            int imagingProfileId = await RESTImagingHelper.CreateImagingProfileAsync(_httpClient, _workspaceArtifactId);

            int imagingSetId = await RESTImagingHelper.CreateImagingSetAsync(_httpClient, savedSearchId, imagingProfileId, _workspaceArtifactId);

            // Run Imaging Job
            await RESTImagingHelper.RunImagingJobAsync(_httpClient, imagingSetId, _workspaceArtifactId);

            await RESTImagingHelper.WaitForImagingJobToCompleteAsync(_httpClient, _workspaceArtifactId, imagingSetId);

            stopwatch.Stop();
            DisplayTimeElapsed(stopwatch.Elapsed);
        }