Merge branch 'master' of gitea.d4m13n.dev:damien/meilisearch.NET
All checks were successful
build-packages / meilisearch-dotnet-packages (push) Successful in 8m57s
All checks were successful
build-packages / meilisearch-dotnet-packages (push) Successful in 8m57s
This commit is contained in:
commit
ab8c4398f8
25
README.md
25
README.md
@ -6,6 +6,7 @@
|
||||

|
||||
[](#)
|
||||
[](LICENSE)
|
||||
[](https://discord.gg/8dHnaarghJ)
|
||||
|
||||
## Overview
|
||||
|
||||
@ -104,6 +105,16 @@ public class SearchService
|
||||
}
|
||||
}
|
||||
```
|
||||
### 4. Use MeiliSearch SDK
|
||||
### Using Native MeiliSearch SDK
|
||||
```csharp
|
||||
await _searchService.SDK("products", async client =>
|
||||
{
|
||||
var index = await client.GetIndex("products");
|
||||
var searchResults = await index.SearchAsync<Product>("laptop");
|
||||
return searchResults;
|
||||
});
|
||||
```
|
||||
|
||||
## Advanced Usage
|
||||
|
||||
@ -127,16 +138,6 @@ await _searchService.SetIndexEnabled("products", true);
|
||||
var indexes = await _searchService.GetAllIndexes();
|
||||
```
|
||||
|
||||
### Using Native MeiliSearch SDK
|
||||
```csharp
|
||||
await _searchService.SDK("products", async client =>
|
||||
{
|
||||
var index = await client.GetIndex("products");
|
||||
var searchResults = await index.SearchAsync<Product>("laptop");
|
||||
return searchResults;
|
||||
});
|
||||
```
|
||||
|
||||
## Best Practices
|
||||
|
||||
1. **Resource Management**
|
||||
@ -174,8 +175,8 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
||||
## Support
|
||||
|
||||
- Create an issue on GitHub
|
||||
- Contact us at [your contact method]
|
||||
- Visit our documentation at [your docs URL]
|
||||
- Contact us on discord [](https://discord.gg/8dHnaarghJ)
|
||||
- Visit our documentation at meilisearchdotnet.d4m13n.dev
|
||||
|
||||
## Acknowledgments
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user