Info
Version: | 1.0.1 |
Author(s): | Tomasz Margacz |
Last Update: | Thursday, December 28, 2017 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/AzureSearch.Quick |
Install
Install-Package AzureSearch.Quick
dotnet add package AzureSearch.Quick
paket add AzureSearch.Quick
AzureSearch.Quick Download (Unzip the "nupkg" after downloading)
Dependencies
- Newtonsoft.Json(>= 9.0.1)
Tags
This tool allows to easy upload/search/delete to search service with using only one line of code.
Samples - https://github.com/tomaszmargacz/nuget-samples/tree/master/AzureSearch.Quick.Sample
If you have any questions or need improvement feel free to contact me: [email protected]
Sample code:
// init
var azureSearchQuick = new AzureSearchQuick(„* URL *”,”* KEY *”);
//search
var searchResult = azureSearchQuick.Search<SearchModel>("?search=Azure Search Quick");
// prepare
Dictionary<string, object> temp = new Dictionary<string, object>();
temp.Add("Key", "ValueTest");
temp.Add("Name", "Azure Search Quick");
// mergeOrUpload
var mergeOrUploadResult = azureSearchQuick.MergeOrUpload(temp);
// delete
var deleteResult = azureSearchQuick.Delete("Key", "ValueTest");.