├── .gitattributes ├── .gitignore ├── Autocomplete.API ├── Autocomplete.API.csproj ├── Controllers │ └── ProductSuggestsController.cs ├── Program.cs ├── Properties │ └── launchSettings.json ├── Startup.cs ├── appsettings.Development.json └── appsettings.json ├── Autocomplete.Business.Objects ├── Autocomplete.Business.Objects.csproj ├── Product.cs └── ProductSuggestResponse.cs ├── Autocomplete.Business ├── Autocomplete.Business.csproj ├── AutocompleteService.cs └── IAutocompleteService.cs ├── Autocomplete.Core ├── Autocomplete.Core.csproj └── Class1.cs ├── Autocomplete.Feed ├── Autocomplete.Feed.csproj └── Program.cs ├── Autocomplete.sln └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | x64/ 19 | x86/ 20 | bld/ 21 | [Bb]in/ 22 | [Oo]bj/ 23 | [Ll]og/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | # Uncomment if you have tasks that create the project's static files in wwwroot 28 | #wwwroot/ 29 | 30 | # MSTest test Results 31 | [Tt]est[Rr]esult*/ 32 | [Bb]uild[Ll]og.* 33 | 34 | # NUNIT 35 | *.VisualState.xml 36 | TestResult.xml 37 | 38 | # Build Results of an ATL Project 39 | [Dd]ebugPS/ 40 | [Rr]eleasePS/ 41 | dlldata.c 42 | 43 | # DNX 44 | project.lock.json 45 | project.fragment.lock.json 46 | artifacts/ 47 | 48 | *_i.c 49 | *_p.c 50 | *_i.h 51 | *.ilk 52 | *.meta 53 | *.obj 54 | *.pch 55 | *.pdb 56 | *.pgc 57 | *.pgd 58 | *.rsp 59 | *.sbr 60 | *.tlb 61 | *.tli 62 | *.tlh 63 | *.tmp 64 | *.tmp_proj 65 | *.log 66 | *.vspscc 67 | *.vssscc 68 | .builds 69 | *.pidb 70 | *.svclog 71 | *.scc 72 | 73 | # Chutzpah Test files 74 | _Chutzpah* 75 | 76 | # Visual C++ cache files 77 | ipch/ 78 | *.aps 79 | *.ncb 80 | *.opendb 81 | *.opensdf 82 | *.sdf 83 | *.cachefile 84 | *.VC.db 85 | *.VC.VC.opendb 86 | 87 | # Visual Studio profiler 88 | *.psess 89 | *.vsp 90 | *.vspx 91 | *.sap 92 | 93 | # TFS 2012 Local Workspace 94 | $tf/ 95 | 96 | # Guidance Automation Toolkit 97 | *.gpState 98 | 99 | # ReSharper is a .NET coding add-in 100 | _ReSharper*/ 101 | *.[Rr]e[Ss]harper 102 | *.DotSettings.user 103 | 104 | # JustCode is a .NET coding add-in 105 | .JustCode 106 | 107 | # TeamCity is a build add-in 108 | _TeamCity* 109 | 110 | # DotCover is a Code Coverage Tool 111 | *.dotCover 112 | 113 | # NCrunch 114 | _NCrunch_* 115 | .*crunch*.local.xml 116 | nCrunchTemp_* 117 | 118 | # MightyMoose 119 | *.mm.* 120 | AutoTest.Net/ 121 | 122 | # Web workbench (sass) 123 | .sass-cache/ 124 | 125 | # Installshield output folder 126 | [Ee]xpress/ 127 | 128 | # DocProject is a documentation generator add-in 129 | DocProject/buildhelp/ 130 | DocProject/Help/*.HxT 131 | DocProject/Help/*.HxC 132 | DocProject/Help/*.hhc 133 | DocProject/Help/*.hhk 134 | DocProject/Help/*.hhp 135 | DocProject/Help/Html2 136 | DocProject/Help/html 137 | 138 | # Click-Once directory 139 | publish/ 140 | 141 | # Publish Web Output 142 | *.[Pp]ublish.xml 143 | *.azurePubxml 144 | # TODO: Comment the next line if you want to checkin your web deploy settings 145 | # but database connection strings (with potential passwords) will be unencrypted 146 | #*.pubxml 147 | *.publishproj 148 | 149 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 150 | # checkin your Azure Web App publish settings, but sensitive information contained 151 | # in these scripts will be unencrypted 152 | PublishScripts/ 153 | 154 | # NuGet Packages 155 | *.nupkg 156 | # The packages folder can be ignored because of Package Restore 157 | **/packages/* 158 | # except build/, which is used as an MSBuild target. 159 | !**/packages/build/ 160 | # Uncomment if necessary however generally it will be regenerated when needed 161 | #!**/packages/repositories.config 162 | # NuGet v3's project.json files produces more ignoreable files 163 | *.nuget.props 164 | *.nuget.targets 165 | 166 | # Microsoft Azure Build Output 167 | csx/ 168 | *.build.csdef 169 | 170 | # Microsoft Azure Emulator 171 | ecf/ 172 | rcf/ 173 | 174 | # Windows Store app package directories and files 175 | AppPackages/ 176 | BundleArtifacts/ 177 | Package.StoreAssociation.xml 178 | _pkginfo.txt 179 | 180 | # Visual Studio cache files 181 | # files ending in .cache can be ignored 182 | *.[Cc]ache 183 | # but keep track of directories ending in .cache 184 | !*.[Cc]ache/ 185 | 186 | # Others 187 | ClientBin/ 188 | ~$* 189 | *~ 190 | *.dbmdl 191 | *.dbproj.schemaview 192 | *.jfm 193 | *.pfx 194 | *.publishsettings 195 | node_modules/ 196 | orleans.codegen.cs 197 | 198 | # Since there are multiple workflows, uncomment next line to ignore bower_components 199 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 200 | #bower_components/ 201 | 202 | # RIA/Silverlight projects 203 | Generated_Code/ 204 | 205 | # Backup & report files from converting an old project file 206 | # to a newer Visual Studio version. Backup files are not needed, 207 | # because we have git ;-) 208 | _UpgradeReport_Files/ 209 | Backup*/ 210 | UpgradeLog*.XML 211 | UpgradeLog*.htm 212 | 213 | # SQL Server files 214 | *.mdf 215 | *.ldf 216 | 217 | # Business Intelligence projects 218 | *.rdl.data 219 | *.bim.layout 220 | *.bim_*.settings 221 | 222 | # Microsoft Fakes 223 | FakesAssemblies/ 224 | 225 | # GhostDoc plugin setting file 226 | *.GhostDoc.xml 227 | 228 | # Node.js Tools for Visual Studio 229 | .ntvs_analysis.dat 230 | 231 | # Visual Studio 6 build log 232 | *.plg 233 | 234 | # Visual Studio 6 workspace options file 235 | *.opt 236 | 237 | # Visual Studio LightSwitch build output 238 | **/*.HTMLClient/GeneratedArtifacts 239 | **/*.DesktopClient/GeneratedArtifacts 240 | **/*.DesktopClient/ModelManifest.xml 241 | **/*.Server/GeneratedArtifacts 242 | **/*.Server/ModelManifest.xml 243 | _Pvt_Extensions 244 | 245 | # Paket dependency manager 246 | .paket/paket.exe 247 | paket-files/ 248 | 249 | # FAKE - F# Make 250 | .fake/ 251 | 252 | # JetBrains Rider 253 | .idea/ 254 | *.sln.iml 255 | 256 | # CodeRush 257 | .cr/ 258 | 259 | # Python Tools for Visual Studio (PTVS) 260 | __pycache__/ 261 | *.pyc -------------------------------------------------------------------------------- /Autocomplete.API/Autocomplete.API.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Autocomplete.API/Controllers/ProductSuggestsController.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | using Autocomplete.Business; 3 | using Autocomplete.Business.Objects; 4 | using Microsoft.AspNetCore.Mvc; 5 | 6 | namespace Autocomplete.API.Controllers 7 | { 8 | [Route("api/product-suggests")] 9 | public class ProductSuggestsController : Controller 10 | { 11 | readonly IAutocompleteService _autocompleteService; 12 | const string PRODUCT_SUGGEST_INDEX = "product_suggest"; 13 | 14 | public ProductSuggestsController(IAutocompleteService autocompleteService) 15 | { 16 | _autocompleteService = autocompleteService; 17 | } 18 | 19 | [HttpGet] 20 | public async Task Get(string keyword) 21 | { 22 | return await _autocompleteService.SuggestAsync(PRODUCT_SUGGEST_INDEX, keyword); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /Autocomplete.API/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore; 7 | using Microsoft.AspNetCore.Hosting; 8 | using Microsoft.Extensions.Configuration; 9 | using Microsoft.Extensions.Logging; 10 | 11 | namespace Autocomplete.API 12 | { 13 | public class Program 14 | { 15 | public static void Main(string[] args) 16 | { 17 | BuildWebHost(args).Run(); 18 | } 19 | 20 | public static IWebHost BuildWebHost(string[] args) => 21 | WebHost.CreateDefaultBuilder(args) 22 | .UseStartup() 23 | .Build(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Autocomplete.API/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "iisSettings": { 3 | "windowsAuthentication": false, 4 | "anonymousAuthentication": true, 5 | "iisExpress": { 6 | "applicationUrl": "http://localhost:55556/", 7 | "sslPort": 0 8 | } 9 | }, 10 | "profiles": { 11 | "IIS Express": { 12 | "commandName": "IISExpress", 13 | "launchBrowser": true, 14 | "launchUrl": "api/product-suggests", 15 | "environmentVariables": { 16 | "ASPNETCORE_ENVIRONMENT": "Development" 17 | } 18 | }, 19 | "Autocomplete.API": { 20 | "commandName": "Project", 21 | "launchBrowser": true, 22 | "launchUrl": "api/product-suggests", 23 | "environmentVariables": { 24 | "ASPNETCORE_ENVIRONMENT": "Development" 25 | }, 26 | "applicationUrl": "http://localhost:5000/" 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /Autocomplete.API/Startup.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Autocomplete.Business; 3 | using Microsoft.AspNetCore.Builder; 4 | using Microsoft.AspNetCore.Hosting; 5 | using Microsoft.Extensions.Configuration; 6 | using Microsoft.Extensions.DependencyInjection; 7 | using Nest; 8 | 9 | namespace Autocomplete.API 10 | { 11 | public class Startup 12 | { 13 | public Startup(IConfiguration configuration) 14 | { 15 | Configuration = configuration; 16 | } 17 | 18 | public IConfiguration Configuration { get; } 19 | 20 | // This method gets called by the runtime. Use this method to add services to the container. 21 | public void ConfigureServices(IServiceCollection services) 22 | { 23 | services.AddMvc(); 24 | 25 | services.AddSingleton(x => new ConnectionSettings(new Uri("http://localhost:9200"))); 26 | services.AddTransient(); 27 | } 28 | 29 | // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. 30 | public void Configure(IApplicationBuilder app, IHostingEnvironment env) 31 | { 32 | if (env.IsDevelopment()) 33 | { 34 | app.UseDeveloperExceptionPage(); 35 | } 36 | 37 | app.UseMvc(); 38 | } 39 | } 40 | } -------------------------------------------------------------------------------- /Autocomplete.API/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Autocomplete.API/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "Debug": { 5 | "LogLevel": { 6 | "Default": "Warning" 7 | } 8 | }, 9 | "Console": { 10 | "LogLevel": { 11 | "Default": "Warning" 12 | } 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Autocomplete.Business.Objects/Autocomplete.Business.Objects.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Autocomplete.Business.Objects/Product.cs: -------------------------------------------------------------------------------- 1 | using Nest; 2 | 3 | namespace Autocomplete.Business.Objects 4 | { 5 | public class Product 6 | { 7 | public string Name { get; set; } 8 | public CompletionField Suggest {get;set;} 9 | } 10 | } -------------------------------------------------------------------------------- /Autocomplete.Business.Objects/ProductSuggestResponse.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace Autocomplete.Business.Objects 4 | { 5 | public class ProductSuggestResponse 6 | { 7 | public IEnumerable Suggests { get; set; } 8 | } 9 | 10 | public class ProductSuggest 11 | { 12 | public string Name { get; set; } 13 | public double Score { get; set; } 14 | } 15 | } -------------------------------------------------------------------------------- /Autocomplete.Business/Autocomplete.Business.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Autocomplete.Business/AutocompleteService.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | using System.Threading.Tasks; 4 | using Autocomplete.Business.Objects; 5 | using Nest; 6 | 7 | namespace Autocomplete.Business 8 | { 9 | public class AutocompleteService : IAutocompleteService 10 | { 11 | readonly ElasticClient _elasticClient; 12 | 13 | public AutocompleteService(ConnectionSettings connectionSettings) 14 | { 15 | _elasticClient = new ElasticClient(connectionSettings); 16 | } 17 | 18 | public async Task CreateIndexAsync(string indexName) 19 | { 20 | var createIndexDescriptor = new CreateIndexDescriptor(indexName) 21 | .Mappings(ms => ms 22 | .Map(m => m 23 | .AutoMap() 24 | .Properties(ps => ps 25 | .Completion(c => c 26 | .Name(p => p.Suggest)))) 27 | 28 | ); 29 | 30 | if (_elasticClient.IndexExists(indexName.ToLowerInvariant()).Exists) 31 | { 32 | _elasticClient.DeleteIndex(indexName.ToLowerInvariant()); 33 | } 34 | 35 | ICreateIndexResponse createIndexResponse = await _elasticClient.CreateIndexAsync(createIndexDescriptor); 36 | 37 | return createIndexResponse.IsValid; 38 | } 39 | 40 | public async Task IndexAsync(string indexName, List products) 41 | { 42 | await _elasticClient.IndexManyAsync(products, indexName); 43 | } 44 | 45 | public async Task SuggestAsync(string indexName, string keyword) 46 | { 47 | ISearchResponse searchResponse = await _elasticClient.SearchAsync(s => s 48 | .Index(indexName) 49 | .Suggest(su => su 50 | .Completion("suggestions", c => c 51 | .Field(f => f.Suggest) 52 | .Prefix(keyword) 53 | .Fuzzy(f => f 54 | .Fuzziness(Fuzziness.Auto) 55 | ) 56 | .Size(5)) 57 | )); 58 | 59 | var suggests = from suggest in searchResponse.Suggest["suggestions"] 60 | from option in suggest.Options 61 | select new ProductSuggest 62 | { 63 | Name = option.Text, 64 | Score = option.Score 65 | }; 66 | 67 | return new ProductSuggestResponse 68 | { 69 | Suggests = suggests 70 | }; 71 | } 72 | } 73 | } -------------------------------------------------------------------------------- /Autocomplete.Business/IAutocompleteService.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Threading.Tasks; 3 | using Autocomplete.Business.Objects; 4 | 5 | namespace Autocomplete.Business 6 | { 7 | public interface IAutocompleteService 8 | { 9 | Task CreateIndexAsync(string indexName); 10 | Task IndexAsync(string indexName, List products); 11 | Task SuggestAsync(string indexName, string keyword); 12 | } 13 | } -------------------------------------------------------------------------------- /Autocomplete.Core/Autocomplete.Core.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp2.0 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Autocomplete.Core/Class1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Autocomplete.Core 4 | { 5 | public class Class1 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Autocomplete.Feed/Autocomplete.Feed.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | netcoreapp2.0 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Autocomplete.Feed/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using Autocomplete.Business; 4 | using Autocomplete.Business.Objects; 5 | using Nest; 6 | 7 | namespace Autocomplete.Feed 8 | { 9 | class Program 10 | { 11 | static void Main(string[] args) 12 | { 13 | List products = new List(); 14 | 15 | products.Add(new Product() 16 | { 17 | Name = "Samsung Galaxy Note 8", 18 | Suggest = new CompletionField() 19 | { 20 | Input = new[] { "Samsung Galaxy Note 8", "Galaxy Note 8", "Note 8" } 21 | } 22 | }); 23 | 24 | products.Add(new Product() 25 | { 26 | Name = "Samsung Galaxy S8", 27 | Suggest = new CompletionField() 28 | { 29 | Input = new[] { "Samsung Galaxy S8", "Galaxy S8", "S8" } 30 | } 31 | }); 32 | 33 | products.Add(new Product() 34 | { 35 | Name = "Apple Iphone 8", 36 | Suggest = new CompletionField() 37 | { 38 | Input = new[] { "Apple Iphone 8", "Iphone 8" } 39 | } 40 | }); 41 | 42 | products.Add(new Product() 43 | { 44 | Name = "Apple Iphone X", 45 | Suggest = new CompletionField() 46 | { 47 | Input = new[] { "Apple Iphone X", "Iphone X" } 48 | } 49 | }); 50 | 51 | products.Add(new Product() 52 | { 53 | Name = "Apple iPad Pro", 54 | Suggest = new CompletionField() 55 | { 56 | Input = new[] { "Apple iPad Pro", "iPad Pro" } 57 | } 58 | }); 59 | 60 | var connectionSettings = new ConnectionSettings(new Uri("http://localhost:9200")); 61 | IAutocompleteService autocompleteService = new AutocompleteService(connectionSettings); 62 | string productSuggestIndex = "product_suggest"; 63 | 64 | bool isCreated = autocompleteService.CreateIndexAsync(productSuggestIndex).Result; 65 | 66 | if (isCreated) 67 | { 68 | autocompleteService.IndexAsync(productSuggestIndex, products).Wait(); 69 | } 70 | } 71 | } 72 | } -------------------------------------------------------------------------------- /Autocomplete.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 12.00 2 | # Visual Studio 15 3 | VisualStudioVersion = 15.0.26730.16 4 | MinimumVisualStudioVersion = 10.0.40219.1 5 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Autocomplete.Feed", "Autocomplete.Feed\Autocomplete.Feed.csproj", "{E2DECA9D-7FCA-48E4-8836-9B0A6AF2BE04}" 6 | EndProject 7 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Autocomplete.Business", "Autocomplete.Business\Autocomplete.Business.csproj", "{E4CCDD7E-A1E7-4C19-8C48-166A9BA84376}" 8 | EndProject 9 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Autocomplete.Business.Objects", "Autocomplete.Business.Objects\Autocomplete.Business.Objects.csproj", "{BBE1ED08-59EB-406C-AF61-9E6A84E65F7E}" 10 | EndProject 11 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Autocomplete.API", "Autocomplete.API\Autocomplete.API.csproj", "{636CAAF0-15C1-4BA7-B801-49B3E0EDF6ED}" 12 | EndProject 13 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{9B9DB8F0-A21C-4753-865D-B50297DA4386}" 14 | ProjectSection(SolutionItems) = preProject 15 | .gitattributes = .gitattributes 16 | .gitignore = .gitignore 17 | README.md = README.md 18 | EndProjectSection 19 | EndProject 20 | Global 21 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 22 | Debug|x86 = Debug|x86 23 | Release|x86 = Release|x86 24 | EndGlobalSection 25 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 26 | {E2DECA9D-7FCA-48E4-8836-9B0A6AF2BE04}.Debug|x86.ActiveCfg = Debug|Any CPU 27 | {E2DECA9D-7FCA-48E4-8836-9B0A6AF2BE04}.Debug|x86.Build.0 = Debug|Any CPU 28 | {E2DECA9D-7FCA-48E4-8836-9B0A6AF2BE04}.Release|x86.ActiveCfg = Release|Any CPU 29 | {E2DECA9D-7FCA-48E4-8836-9B0A6AF2BE04}.Release|x86.Build.0 = Release|Any CPU 30 | {E4CCDD7E-A1E7-4C19-8C48-166A9BA84376}.Debug|x86.ActiveCfg = Debug|Any CPU 31 | {E4CCDD7E-A1E7-4C19-8C48-166A9BA84376}.Debug|x86.Build.0 = Debug|Any CPU 32 | {E4CCDD7E-A1E7-4C19-8C48-166A9BA84376}.Release|x86.ActiveCfg = Release|Any CPU 33 | {E4CCDD7E-A1E7-4C19-8C48-166A9BA84376}.Release|x86.Build.0 = Release|Any CPU 34 | {BBE1ED08-59EB-406C-AF61-9E6A84E65F7E}.Debug|x86.ActiveCfg = Debug|Any CPU 35 | {BBE1ED08-59EB-406C-AF61-9E6A84E65F7E}.Debug|x86.Build.0 = Debug|Any CPU 36 | {BBE1ED08-59EB-406C-AF61-9E6A84E65F7E}.Release|x86.ActiveCfg = Release|Any CPU 37 | {BBE1ED08-59EB-406C-AF61-9E6A84E65F7E}.Release|x86.Build.0 = Release|Any CPU 38 | {636CAAF0-15C1-4BA7-B801-49B3E0EDF6ED}.Debug|x86.ActiveCfg = Debug|Any CPU 39 | {636CAAF0-15C1-4BA7-B801-49B3E0EDF6ED}.Debug|x86.Build.0 = Debug|Any CPU 40 | {636CAAF0-15C1-4BA7-B801-49B3E0EDF6ED}.Release|x86.ActiveCfg = Release|Any CPU 41 | {636CAAF0-15C1-4BA7-B801-49B3E0EDF6ED}.Release|x86.Build.0 = Release|Any CPU 42 | EndGlobalSection 43 | GlobalSection(SolutionProperties) = preSolution 44 | HideSolutionNode = FALSE 45 | EndGlobalSection 46 | GlobalSection(ExtensibilityGlobals) = postSolution 47 | SolutionGuid = {9C5486A8-FE61-4807-94C7-CF294787897E} 48 | EndGlobalSection 49 | EndGlobal 50 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Elasticsearch-Autocomplete-API-Sample 2 | Building Autocomplete API with Completion Suggester in ASP.NET Core sample project 3 | 4 | Link: http://www.gokhan-gokalp.com/en/elasticsearch-series-04-building-autocomplete-api-with-completion-suggester-in-asp-net-core/ 5 | --------------------------------------------------------------------------------