Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thecogworks/cogworks.azuresearch.ioc.umbraco
An Umbraco DI extension to Cogworks.AzureSearch.
https://github.com/thecogworks/cogworks.azuresearch.ioc.umbraco
azure cognitive ioc search umbraco
Last synced: 22 days ago
JSON representation
An Umbraco DI extension to Cogworks.AzureSearch.
- Host: GitHub
- URL: https://github.com/thecogworks/cogworks.azuresearch.ioc.umbraco
- Owner: thecogworks
- License: apache-2.0
- Created: 2021-03-18T07:38:39.000Z (almost 4 years ago)
- Default Branch: develop
- Last Pushed: 2024-06-10T09:36:54.000Z (7 months ago)
- Last Synced: 2024-11-03T14:40:19.292Z (about 2 months ago)
- Topics: azure, cognitive, ioc, search, umbraco
- Language: C#
- Homepage:
- Size: 110 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Cogworks.AzureSearch.IoC.Umbraco · [![GitHub license](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE.md) [![Github Build](https://img.shields.io/github/workflow/status/thecogworks/cogworks.azuresearch/Changelog%20generator%20and%20NuGet%20Releasing)](https://github.com/thecogworks/Cogworks.AzureSearch/actions?query=workflow%3A%22Changelog+generator+and+NuGet+Releasing%22) [![NuGet Version](https://img.shields.io/nuget/v/Cogworks.AzureSearch)](https://www.nuget.org/packages/Cogworks.AzureSearch/) [![codecov](https://codecov.io/gh/thecogworks/UmbracoAzureSearch/branch/master/graph/badge.svg?token=UMLJ5S8UJX)](undefined)
An Umbraco DI extension to Cogworks.AzureSearch.
## Usage
#### Registration```csharp
_composing.RegisterAzureSearch()
.RegisterClientOptions("[AzureSearchServiceName]", "[AzureSearchCredentials]")
.RegisterIndexOptions(false, false) // for now required
.RegisterIndexDefinitions("first-document-index-name")
.RegisterIndexDefinitions("second-document-index-name")
.RegisterIndexDefinitions(new Index{
Name = "third-document-index-name",
ScoringProfiles = new List()
{
new ScoringProfile("global-sp", new TextWeights(new Dictionary()
{
{"Name", 10}, {"Content", 0.1}, {"Tags/Name", 0.1}
}),new List()
{
new FreshnessScoringFunction("PublishDate", 20, TimeSpan.FromDays(180), ScoringFunctionInterpolation.Quadratic)
})
} //and more custom properties to add
})
.RegisterDomainSearcher();
```## License
- Cogworks.AzureSearch is licensed under the [Apache License, Version 2.0](https://opensource.org/licenses/Apache-2.0)
## Code of Conduct
This project has adopted the code of conduct defined by the [Contributor Covenant](https://contributor-covenant.org/) to clarify expected behavior in our community.
For more information, see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct).## Blogs
* [How to Simplify Azure Search Implementations](https://www.wearecogworks.com/blog/how-to-simplify-azure-search-implementations/)
## How can you help?
Please... Spread the word, contribute, submit improvements and issues, unit tests, no input is too little. Thank you in advance <3