();
22 | }
23 | }
--------------------------------------------------------------------------------
/msrpaweb/Properties/PublishProfiles/FolderProfile.pubxml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 | FileSystem
9 | FileSystem
10 | Release
11 | Any CPU
12 |
13 | True
14 | False
15 | f8381137-6519-42a8-9993-97befb26958e
16 | bin\Release\netcoreapp2.2\publish\
17 | False
18 |
19 |
--------------------------------------------------------------------------------
/msrpaweb/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "iisSettings": {
3 | "windowsAuthentication": false,
4 | "anonymousAuthentication": true,
5 | "iisExpress": {
6 | "applicationUrl": "http://localhost:57252/",
7 | "sslPort": 0
8 | }
9 | },
10 | "profiles": {
11 | "IIS Express": {
12 | "commandName": "IISExpress",
13 | "launchBrowser": true,
14 | "environmentVariables": {
15 | "ASPNETCORE_ENVIRONMENT": "Development"
16 | }
17 | },
18 | "CognitiveSearch.Web": {
19 | "commandName": "Project",
20 | "launchBrowser": true,
21 | "environmentVariables": {
22 | "ASPNETCORE_ENVIRONMENT": "Development"
23 | },
24 | "applicationUrl": "http://localhost:57256/"
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/msrpaweb/Views/Admin/NotAvailable.cshtml:
--------------------------------------------------------------------------------
1 |
2 | @{
3 | ViewData["Title"] = "Functionality not available";
4 | }
5 |
6 |
7 | The functionality is not available in this deployment
8 |
9 |
10 | This is a shared deployment. Some functionalities including customization and uploading files are not available in this deployment.
11 |
12 |
13 | If you want to use this functionality, you can create it your own deployment. You can find the deployment script and instruction in
14 | the GitHub repo.
15 |
16 |
17 |
--------------------------------------------------------------------------------
/msrpaweb/Views/Home/Index.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewData["Title"] = "Home Page";
3 | }
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
16 | |
17 |
18 |
19 | 
20 |
21 | |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/msrpaweb/Views/Home/Privacy.cshtml:
--------------------------------------------------------------------------------
1 |
2 | @{
3 | ViewData["Title"] = "Privacy";
4 | }
5 |
6 |
7 |
8 | Privacy
9 |
10 | Please read Microsoft Privacy Statement here.
11 |
--------------------------------------------------------------------------------
/msrpaweb/Views/Home/UseOfDatasets.cshtml:
--------------------------------------------------------------------------------
1 |
2 | @{
3 | ViewData["Title"] = "Use of Demo";
4 | }
5 |
6 |
7 |
8 | Notice
9 |
10 | MICROSOFT PROVIDES THIS DEMO SOLUTION AND SAMPLE DATASETS ON AN “AS IS” BASIS.
11 | MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, GUARANTEES OR CONDITIONS WITH RESPECT TO YOUR USE OF THE DATASETS.
12 | TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAW, MICROSOFT DISCLAIMS ALL LIABILITY FOR ANY DAMAGES OR LOSSES, INCLUDING DIRECT, CONSEQUENTIAL, SPECIAL, INDIRECT, INCIDENTAL OR PUNITIVE, RESULTING FROM YOUR USE OF THE DATASETS.
13 |
14 | This dataset is provided under the original terms that Microsoft received source data. The dataset may include data sourced from Microsoft. See here for more information.
15 |
--------------------------------------------------------------------------------
/msrpaweb/Views/Search/Index.cshtml:
--------------------------------------------------------------------------------
1 | @model msrpaweb.AppConfig
2 |
3 | @{
4 | ViewData["Title"] = "Index";
5 | }
6 |
7 | @await Html.PartialAsync("_SideBar")
8 |
9 |
10 |
11 |
12 |
Cognitive Search...
13 |
14 |
15 |
16 |
17 |
Enter a search query on the left to begin exploring your data.
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/msrpaweb/Views/Search/_FacetSettings.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
Facets Settings
3 |
4 | Facet type:
5 |
6 |
7 |
Hide facet
8 |
9 | Restriction list:
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/msrpaweb/Views/Search/_SearchEmpty.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
Enter a search query on the left to begin exploring your data.
4 |
5 |
--------------------------------------------------------------------------------
/msrpaweb/Views/Shared/Error.cshtml:
--------------------------------------------------------------------------------
1 | @model ErrorViewModel
2 | @{
3 | ViewData["Title"] = "Error";
4 | }
5 |
6 | Error.
7 | An error occurred while processing your request.
8 |
9 | @if (Model.ShowRequestId)
10 | {
11 |
12 | Request ID: @Model.RequestId
13 |
14 | }
15 |
16 | Development Mode
17 |
18 | Swapping to Development environment will display more detailed information about the error that occurred.
19 |
20 |
21 | The Development environment shouldn't be enabled for deployed applications.
22 | It can result in displaying sensitive information from exceptions to end users.
23 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development
24 | and restarting the app.
25 |
26 |
--------------------------------------------------------------------------------
/msrpaweb/Views/Shared/_Architecture.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
Explore your files using Cognitive Search with Azure Search
4 |
5 |
6 |
--------------------------------------------------------------------------------
/msrpaweb/Views/Shared/_Footer.cshtml:
--------------------------------------------------------------------------------
1 | @using msrpaweb
2 | @inject OrganizationConfig OrgConfig
3 |
4 |
--------------------------------------------------------------------------------
/msrpaweb/Views/Shared/_ValidationScriptsPartial.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
12 |
18 |
19 |
--------------------------------------------------------------------------------
/msrpaweb/Views/_ViewImports.cshtml:
--------------------------------------------------------------------------------
1 | @using msrpaweb
2 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
3 | @inject Microsoft.ApplicationInsights.AspNetCore.JavaScriptSnippet JavaScriptSnippet
4 |
--------------------------------------------------------------------------------
/msrpaweb/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "_Layout";
3 | }
4 |
--------------------------------------------------------------------------------
/msrpaweb/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Debug",
5 | "System": "Information",
6 | "Microsoft": "Information"
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/msrpaweb/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Warning"
5 | }
6 | },
7 | "AllowedHosts": "*",
8 | "APPINSIGHTS_INSTRUMENTATIONKEY": "",
9 | "ApiProtocol": "http",
10 | //"ApiUrl": "https://kmahc-webapi.azurewebsites.net",
11 | "ApiUrl": "http://localhost:57249",
12 | "OrganizationName": "Microsoft",
13 | "OrganizationWebSiteUrl": "https://www.microsoft.com",
14 | "OrganizationLogo": "Microsoft-Logo-PNG.png",
15 | "Customizable": "true"
16 | }
--------------------------------------------------------------------------------
/msrpaweb/msrpaweb.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netcoreapp2.2
5 | InProcess
6 | 2cc5bf4a-076c-439c-ba18-4b4fafa130e8
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/msrpaweb/obj/Debug/netcoreapp2.2/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MSUSAzureAccelerators/Intelligent-Document-Processing-Accelerator/94a2bc5b2bdf4e26ec37aa4fdde621fa6876db2c/msrpaweb/obj/Debug/netcoreapp2.2/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/msrpaweb/obj/Debug/netcoreapp2.2/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MSUSAzureAccelerators/Intelligent-Document-Processing-Accelerator/94a2bc5b2bdf4e26ec37aa4fdde621fa6876db2c/msrpaweb/obj/Debug/netcoreapp2.2/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/msrpaweb/obj/Debug/netcoreapp2.2/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MSUSAzureAccelerators/Intelligent-Document-Processing-Accelerator/94a2bc5b2bdf4e26ec37aa4fdde621fa6876db2c/msrpaweb/obj/Debug/netcoreapp2.2/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/msrpaweb/obj/Debug/netcoreapp2.2/msrpaweb.AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | using System;
12 | using System.Reflection;
13 |
14 | [assembly: Microsoft.Extensions.Configuration.UserSecrets.UserSecretsIdAttribute("2cc5bf4a-076c-439c-ba18-4b4fafa130e8")]
15 | [assembly: System.Reflection.AssemblyCompanyAttribute("msrpaweb")]
16 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
17 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
18 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
19 | [assembly: System.Reflection.AssemblyProductAttribute("msrpaweb")]
20 | [assembly: System.Reflection.AssemblyTitleAttribute("msrpaweb")]
21 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
22 |
23 | // Generated by the MSBuild WriteCodeFragment class.
24 |
25 |
--------------------------------------------------------------------------------
/msrpaweb/obj/Debug/netcoreapp2.2/msrpaweb.AssemblyInfoInputs.cache:
--------------------------------------------------------------------------------
1 | 27d3113af9bae5f1b329f5daba52bcee20d8a7d5
2 |
--------------------------------------------------------------------------------
/msrpaweb/obj/Debug/netcoreapp2.2/msrpaweb.RazorAssemblyInfo.cache:
--------------------------------------------------------------------------------
1 | 16a4d79aac22c483bbadd750bdd28f5222a63b56
2 |
--------------------------------------------------------------------------------
/msrpaweb/obj/Debug/netcoreapp2.2/msrpaweb.RazorAssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | using System;
12 | using System.Reflection;
13 |
14 | [assembly: Microsoft.AspNetCore.Mvc.ApplicationParts.RelatedAssemblyAttribute("msrpaweb.Views")]
15 | [assembly: Microsoft.AspNetCore.Razor.Hosting.RazorLanguageVersionAttribute("2.1")]
16 | [assembly: Microsoft.AspNetCore.Razor.Hosting.RazorConfigurationNameAttribute("MVC-2.1")]
17 | [assembly: Microsoft.AspNetCore.Razor.Hosting.RazorExtensionAssemblyNameAttribute("MVC-2.1", "Microsoft.AspNetCore.Mvc.Razor.Extensions")]
18 |
19 | // Generated by the MSBuild WriteCodeFragment class.
20 |
21 |
--------------------------------------------------------------------------------
/msrpaweb/obj/Debug/netcoreapp2.2/msrpaweb.assets.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MSUSAzureAccelerators/Intelligent-Document-Processing-Accelerator/94a2bc5b2bdf4e26ec37aa4fdde621fa6876db2c/msrpaweb/obj/Debug/netcoreapp2.2/msrpaweb.assets.cache
--------------------------------------------------------------------------------
/msrpaweb/obj/Debug/netcoreapp2.2/msrpaweb.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 80b0bfb675e05e418a0428ff1bc304996553e8c8
2 |
--------------------------------------------------------------------------------
/msrpaweb/obj/Debug/netcoreapp2.2/msrpaweb.csprojAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MSUSAzureAccelerators/Intelligent-Document-Processing-Accelerator/94a2bc5b2bdf4e26ec37aa4fdde621fa6876db2c/msrpaweb/obj/Debug/netcoreapp2.2/msrpaweb.csprojAssemblyReference.cache
--------------------------------------------------------------------------------
/msrpaweb/obj/msrpaweb.csproj.nuget.cache:
--------------------------------------------------------------------------------
1 | {
2 | "version": 1,
3 | "dgSpecHash": "/S49axt2V3yCL5a0HzX4fdH1B232jp/hzXOYY9c8BBmFm4lamiblk/FM4LjFE9cVVybG07+o6SR/mmhPjz2h6w==",
4 | "success": true
5 | }
--------------------------------------------------------------------------------
/msrpaweb/wwwroot/css/footer.css:
--------------------------------------------------------------------------------
1 | .footer-bg{background-color:#ffffff}.footer-text{color:#000000}
--------------------------------------------------------------------------------
/msrpaweb/wwwroot/css/homepage.css:
--------------------------------------------------------------------------------
1 | #headlinehomepage::after{content: 'Empower your applications with Azure Cognitive Search';}
--------------------------------------------------------------------------------
/msrpaweb/wwwroot/css/navbar.css:
--------------------------------------------------------------------------------
1 | .navbar-bg{background-color:#ffffff}.navbar-text{color:#000000}
--------------------------------------------------------------------------------
/msrpaweb/wwwroot/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MSUSAzureAccelerators/Intelligent-Document-Processing-Accelerator/94a2bc5b2bdf4e26ec37aa4fdde621fa6876db2c/msrpaweb/wwwroot/favicon.ico
--------------------------------------------------------------------------------
/msrpaweb/wwwroot/images/architecture.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MSUSAzureAccelerators/Intelligent-Document-Processing-Accelerator/94a2bc5b2bdf4e26ec37aa4fdde621fa6876db2c/msrpaweb/wwwroot/images/architecture.png
--------------------------------------------------------------------------------
/msrpaweb/wwwroot/images/cogsearch-architecture.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MSUSAzureAccelerators/Intelligent-Document-Processing-Accelerator/94a2bc5b2bdf4e26ec37aa4fdde621fa6876db2c/msrpaweb/wwwroot/images/cogsearch-architecture.png
--------------------------------------------------------------------------------
/msrpaweb/wwwroot/images/collapse.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MSUSAzureAccelerators/Intelligent-Document-Processing-Accelerator/94a2bc5b2bdf4e26ec37aa4fdde621fa6876db2c/msrpaweb/wwwroot/images/collapse.png
--------------------------------------------------------------------------------
/msrpaweb/wwwroot/images/expand.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MSUSAzureAccelerators/Intelligent-Document-Processing-Accelerator/94a2bc5b2bdf4e26ec37aa4fdde621fa6876db2c/msrpaweb/wwwroot/images/expand.png
--------------------------------------------------------------------------------
/msrpaweb/wwwroot/images/healthcare_launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MSUSAzureAccelerators/Intelligent-Document-Processing-Accelerator/94a2bc5b2bdf4e26ec37aa4fdde621fa6876db2c/msrpaweb/wwwroot/images/healthcare_launcher_icon.png
--------------------------------------------------------------------------------
/msrpaweb/wwwroot/images/homepageimage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MSUSAzureAccelerators/Intelligent-Document-Processing-Accelerator/94a2bc5b2bdf4e26ec37aa4fdde621fa6876db2c/msrpaweb/wwwroot/images/homepageimage.png
--------------------------------------------------------------------------------
/msrpaweb/wwwroot/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MSUSAzureAccelerators/Intelligent-Document-Processing-Accelerator/94a2bc5b2bdf4e26ec37aa4fdde621fa6876db2c/msrpaweb/wwwroot/images/logo.png
--------------------------------------------------------------------------------
/msrpaweb/wwwroot/images/oilandgas_launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MSUSAzureAccelerators/Intelligent-Document-Processing-Accelerator/94a2bc5b2bdf4e26ec37aa4fdde621fa6876db2c/msrpaweb/wwwroot/images/oilandgas_launcher_icon.png
--------------------------------------------------------------------------------
/msrpaweb/wwwroot/images/retail_launcher_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MSUSAzureAccelerators/Intelligent-Document-Processing-Accelerator/94a2bc5b2bdf4e26ec37aa4fdde621fa6876db2c/msrpaweb/wwwroot/images/retail_launcher_icon.png
--------------------------------------------------------------------------------
/msrpaweb/wwwroot/images/test-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MSUSAzureAccelerators/Intelligent-Document-Processing-Accelerator/94a2bc5b2bdf4e26ec37aa4fdde621fa6876db2c/msrpaweb/wwwroot/images/test-logo.png
--------------------------------------------------------------------------------
/msrpaweb/wwwroot/lib/bootstrap/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2011-2018 Twitter, Inc.
4 | Copyright (c) 2011-2018 The Bootstrap Authors
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated documentation files (the "Software"), to deal
8 | in the Software without restriction, including without limitation the rights
9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | copies of the Software, and to permit persons to whom the Software is
11 | furnished to do so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in
14 | all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/msrpaweb/wwwroot/lib/dropzone/dist/css/basic.min.css:
--------------------------------------------------------------------------------
1 | .dropzone,.dropzone *{box-sizing:border-box}.dropzone{position:relative}.dropzone .dz-preview{position:relative;display:inline-block;width:120px;margin:0.5em}.dropzone .dz-preview .dz-progress{display:block;height:15px;border:1px solid #aaa}.dropzone .dz-preview .dz-progress .dz-upload{display:block;height:100%;width:0;background:green}.dropzone .dz-preview .dz-error-message{color:red;display:none}.dropzone .dz-preview.dz-error .dz-error-message,.dropzone .dz-preview.dz-error .dz-error-mark{display:block}.dropzone .dz-preview.dz-success .dz-success-mark{display:block}.dropzone .dz-preview .dz-error-mark,.dropzone .dz-preview .dz-success-mark{position:absolute;display:none;left:30px;top:30px;width:54px;height:58px;left:50%;margin-left:-27px}
2 |
--------------------------------------------------------------------------------
/msrpaweb/wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) .NET Foundation. All rights reserved.
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4 | these files except in compliance with the License. You may obtain a copy of the
5 | License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software distributed
10 | under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11 | CONDITIONS OF ANY KIND, either express or implied. See the License for the
12 | specific language governing permissions and limitations under the License.
13 |
--------------------------------------------------------------------------------
/msrpaweb/wwwroot/lib/jquery-validation/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 | =====================
3 |
4 | Copyright Jörn Zaefferer
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated documentation files (the "Software"), to deal
8 | in the Software without restriction, including without limitation the rights
9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | copies of the Software, and to permit persons to whom the Software is
11 | furnished to do so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in
14 | all copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/msrpawebapi/Controllers/GraphController.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.AspNetCore.Mvc;
2 | using msrpaazure;
3 | using System.Threading.Tasks;
4 |
5 | namespace msrpawebapi
6 | {
7 | [Produces("application/json")]
8 | [Route("api/[controller]")]
9 | [ApiController]
10 | public class GraphController : ControllerBase
11 | {
12 | private readonly SearchConfig _searchConfig;
13 |
14 | public GraphController(SearchConfig searchConfig)
15 | {
16 | _searchConfig = searchConfig;
17 | }
18 |
19 | [HttpGet]
20 | [HttpGet("{facet}")]
21 | public async Task Get(string facet, string query)
22 | {
23 | if (string.IsNullOrWhiteSpace(query))
24 | {
25 | query = "*";
26 | }
27 |
28 | if (string.IsNullOrWhiteSpace(facet))
29 | {
30 | facet = "keyPhrases";
31 | }
32 |
33 | var graphJson = await FacetGraphGenerator.GetGraphNodes(_searchConfig, query, facet);
34 |
35 | return new JsonResult(graphJson);
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/msrpawebapi/Models/ResetIndexerRequest.cs:
--------------------------------------------------------------------------------
1 | using Newtonsoft.Json;
2 |
3 | namespace msrpawebapi
4 | {
5 | public class ResetIndexerRequest
6 | {
7 | [JsonProperty("delete")]
8 | public bool Delete { get; set; }
9 |
10 | [JsonProperty("run")]
11 | public bool Run { get; set; }
12 |
13 | [JsonProperty("reset")]
14 | public bool Reset { get; set; }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/msrpawebapi/Models/SearchRequest.cs:
--------------------------------------------------------------------------------
1 | using msrpaazure;
2 | using Newtonsoft.Json;
3 |
4 | namespace msrpawebapi
5 | {
6 | public class SearchRequest
7 | {
8 | [JsonProperty("query")]
9 | public string Query { get; set; }
10 | [JsonProperty("searchFacets")]
11 | public SearchFacet[] SearchFacets { get; set; }
12 | [JsonProperty("currentPage")]
13 | public int CurrentPage { get; set; } = 1;
14 | }
15 | }
--------------------------------------------------------------------------------
/msrpawebapi/Program.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.AspNetCore;
2 | using Microsoft.AspNetCore.Hosting;
3 | using Microsoft.Extensions.Configuration;
4 |
5 | namespace msrpawebapi
6 | {
7 | public class Program
8 | {
9 | public static void Main(string[] args)
10 | {
11 | CreateWebHostBuilder(args).Build().Run();
12 | }
13 |
14 | public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
15 | WebHost.CreateDefaultBuilder(args)
16 | .ConfigureAppConfiguration((context, config) =>
17 | {
18 | var buildConfig = config.Build();
19 | config.AddEnvironmentVariables();
20 | })
21 | .UseStartup();
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/msrpawebapi/Properties/PublishProfiles/FolderProfile.pubxml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 | FileSystem
9 | FileSystem
10 | Release
11 | Any CPU
12 |
13 | True
14 | False
15 | ca09cbdd-878a-4ecf-811d-da33f47fb85d
16 | bin\Debug\netcoreapp2.2\publish\
17 | False
18 |
19 |
--------------------------------------------------------------------------------
/msrpawebapi/Properties/launchSettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "iisSettings": {
3 | "windowsAuthentication": false,
4 | "anonymousAuthentication": true,
5 | "iisExpress": {
6 | "applicationUrl": "http://localhost:57249/",
7 | "sslPort": 0
8 | }
9 | },
10 | "profiles": {
11 | "IIS Express": {
12 | "commandName": "IISExpress",
13 | "launchBrowser": true,
14 | "environmentVariables": {
15 | "ASPNETCORE_ENVIRONMENT": "Development"
16 | }
17 | },
18 | "CognitiveSearch.WebApi": {
19 | "commandName": "Project",
20 | "launchBrowser": true,
21 | "environmentVariables": {
22 | "ASPNETCORE_ENVIRONMENT": "Development"
23 | },
24 | "applicationUrl": "http://localhost:57253/"
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/msrpawebapi/appsettings.Development.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Debug",
5 | "System": "Information",
6 | "Microsoft": "Information"
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/msrpawebapi/appsettings.json:
--------------------------------------------------------------------------------
1 | {
2 | "Logging": {
3 | "LogLevel": {
4 | "Default": "Warning"
5 | }
6 | },
7 | "AllowedHosts": "*",
8 | "APPINSIGHTS_INSTRUMENTATIONKEY": "",
9 | "SearchServiceName": "",
10 | "SearchServiceKey": "",
11 | "SearchServiceApiVersion": "2019-05-06",
12 | "SearchIndexName": "processformsidx",
13 | "InstrumentationKey": "",
14 | "StorageAccountName": "",
15 | "StorageAccountKey": "",
16 | // "StorageContainerAddress": "https://.blob.core.windows.net/1098",
17 | "StorageAccountContainerName": "processforms",
18 | "UploadStorageContainerName": "formspdf"
19 | //"FacetsFilteringContainerName": "facetfilters"
20 | }
--------------------------------------------------------------------------------
/msrpawebapi/msrpawebapi.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netcoreapp2.2
5 | InProcess
6 | e9f2279a-5a09-41d9-ac23-4e09f0e62412
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/msrpawebapi/obj/Debug/netcoreapp2.2/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MSUSAzureAccelerators/Intelligent-Document-Processing-Accelerator/94a2bc5b2bdf4e26ec37aa4fdde621fa6876db2c/msrpawebapi/obj/Debug/netcoreapp2.2/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/msrpawebapi/obj/Debug/netcoreapp2.2/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MSUSAzureAccelerators/Intelligent-Document-Processing-Accelerator/94a2bc5b2bdf4e26ec37aa4fdde621fa6876db2c/msrpawebapi/obj/Debug/netcoreapp2.2/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/msrpawebapi/obj/Debug/netcoreapp2.2/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MSUSAzureAccelerators/Intelligent-Document-Processing-Accelerator/94a2bc5b2bdf4e26ec37aa4fdde621fa6876db2c/msrpawebapi/obj/Debug/netcoreapp2.2/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/msrpawebapi/obj/Debug/netcoreapp2.2/msrpawebapi.AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | using System;
12 | using System.Reflection;
13 |
14 | [assembly: Microsoft.Extensions.Configuration.UserSecrets.UserSecretsIdAttribute("e9f2279a-5a09-41d9-ac23-4e09f0e62412")]
15 | [assembly: System.Reflection.AssemblyCompanyAttribute("msrpawebapi")]
16 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
17 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
18 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
19 | [assembly: System.Reflection.AssemblyProductAttribute("msrpawebapi")]
20 | [assembly: System.Reflection.AssemblyTitleAttribute("msrpawebapi")]
21 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
22 |
23 | // Generated by the MSBuild WriteCodeFragment class.
24 |
25 |
--------------------------------------------------------------------------------
/msrpawebapi/obj/Debug/netcoreapp2.2/msrpawebapi.AssemblyInfoInputs.cache:
--------------------------------------------------------------------------------
1 | ff423f855f01d540eb17bb39a50ae8059a94f6b0
2 |
--------------------------------------------------------------------------------
/msrpawebapi/obj/Debug/netcoreapp2.2/msrpawebapi.RazorAssemblyInfo.cache:
--------------------------------------------------------------------------------
1 | 05634ca6092160c2895e1dd177e68705271a9e49
2 |
--------------------------------------------------------------------------------
/msrpawebapi/obj/Debug/netcoreapp2.2/msrpawebapi.RazorAssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | using System;
12 | using System.Reflection;
13 |
14 | [assembly: Microsoft.AspNetCore.Mvc.ApplicationParts.RelatedAssemblyAttribute("msrpawebapi.Views")]
15 | [assembly: Microsoft.AspNetCore.Razor.Hosting.RazorLanguageVersionAttribute("2.1")]
16 | [assembly: Microsoft.AspNetCore.Razor.Hosting.RazorConfigurationNameAttribute("MVC-2.1")]
17 | [assembly: Microsoft.AspNetCore.Razor.Hosting.RazorExtensionAssemblyNameAttribute("MVC-2.1", "Microsoft.AspNetCore.Mvc.Razor.Extensions")]
18 |
19 | // Generated by the MSBuild WriteCodeFragment class.
20 |
21 |
--------------------------------------------------------------------------------
/msrpawebapi/obj/Debug/netcoreapp2.2/msrpawebapi.assets.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MSUSAzureAccelerators/Intelligent-Document-Processing-Accelerator/94a2bc5b2bdf4e26ec37aa4fdde621fa6876db2c/msrpawebapi/obj/Debug/netcoreapp2.2/msrpawebapi.assets.cache
--------------------------------------------------------------------------------
/msrpawebapi/obj/Debug/netcoreapp2.2/msrpawebapi.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | 34de2002ad06a07bb987f8de35f24cb5e0587bf4
2 |
--------------------------------------------------------------------------------
/msrpawebapi/obj/Debug/netcoreapp2.2/msrpawebapi.csprojAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/MSUSAzureAccelerators/Intelligent-Document-Processing-Accelerator/94a2bc5b2bdf4e26ec37aa4fdde621fa6876db2c/msrpawebapi/obj/Debug/netcoreapp2.2/msrpawebapi.csprojAssemblyReference.cache
--------------------------------------------------------------------------------
/msrpawebapi/obj/msrpawebapi.csproj.nuget.cache:
--------------------------------------------------------------------------------
1 | {
2 | "version": 1,
3 | "dgSpecHash": "WZ4DZeHPOM4LQNwYcpIItp3khPeFxAzCD3hUx9nO5/pI/hadtKeM5Ri9mUMuomAuhdCjEo0GZbARliN3x6MoqA==",
4 | "success": true
5 | }
--------------------------------------------------------------------------------
/videos/readme.md:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------