Skip to content

Instantly share code, notes, and snippets.

@abiriadev
Created June 29, 2022 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abiriadev/c35041945644bfc3bbae6a1684b9c6db to your computer and use it in GitHub Desktop.
Save abiriadev/c35041945644bfc3bbae6a1684b9c6db to your computer and use it in GitHub Desktop.
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