Skip to content

Instantly share code, notes, and snippets.

@bleroy
Created July 26, 2020 05:25
Show Gist options
  • Save bleroy/e65b2c33ec9f132dcb5a4b61df243ad1 to your computer and use it in GitHub Desktop.
Save bleroy/e65b2c33ec9f132dcb5a4b61df243ad1 to your computer and use it in GitHub Desktop.
var index = await Index.Build(async builder =>
{
builder
.AddField("title")
.AddField("body")
await builder.Add(new Document
{
{ "title", "Twelfth-Night" },
{ "body", "If music be the food of love, play on: Give me excess of it…" },
{ "author", "William Shakespeare" }
{ "id", "1" },
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment