web3.news/scripts/melli-init.mts

8 lines
213 B
TypeScript
Raw Normal View History

import search from "../app/lib/search";
await search.createIndex("articles", { primaryKey: "id" });
const index = search.index("articles");
await index.updateFilterableAttributes(["site", "createdTimestamp"]);