Created
June 29, 2022 14:15
-
-
Save abiriadev/c35041945644bfc3bbae6a1684b9c6db to your computer and use it in GitHub Desktop.
meilisearch client with https://github.com/meilisearch/meilisearch-dotnet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading.Tasks; | |
using Meilisearch; | |
class Program { | |
public class Movie { | |
public string Title { get; set; } = ""; | |
} | |
static async Task Main(string[] args) { | |
foreach(var prop in ( | |
await new MeilisearchClient("http://localhost:7700") | |
.Index("movies") | |
.SearchAsync<Movie>("")) | |
.Hits | |
) Console.WriteLine(prop.Title); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment