Update README.md
Some checks failed
build-packages / meilisearch-dotnet-packages (push) Has been cancelled

This commit is contained in:
damien 2025-03-01 18:36:56 +00:00
parent be6b8504be
commit 5417df81ea

View File

@ -106,6 +106,16 @@ public class SearchService
}
```
### 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
### Resource Monitoring
@ -128,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**