Update README.md
Some checks failed
build-packages / meilisearch-dotnet-packages (push) Has been cancelled
Some checks failed
build-packages / meilisearch-dotnet-packages (push) Has been cancelled
This commit is contained in:
parent
be6b8504be
commit
5417df81ea
20
README.md
20
README.md
@ -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**
|
||||
|
Loading…
x
Reference in New Issue
Block a user