diff --git a/README.md b/README.md index 6b36961..2679e7d 100644 --- a/README.md +++ b/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("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("laptop"); - return searchResults; -}); -``` - ## Best Practices 1. **Resource Management**