Track HiveGrid Cloud planning reference

This commit is contained in:
david committed 2026-06-26 20:48:01 +02:00
1 parent b3d5ea6764
commit e341c5938a
5784 files changed
+1104929 -3

No files matched your search

@@ -0,0 +1,43 @@
import type { SearchIndexSchema } from "./types.js";
/**
* Tasks (AK-P4b). Only list/filter-relevant fields are indexed; reminders,
* watchers and source internals stay in Postgres. The estate-wide `hivegrid-`
* Meili prefix (infra STANDARDS §4) is applied at the runtime adapter layer, so
* the schema name here stays unprefixed like the other indexes.
*/
export const tasksIndex: SearchIndexSchema = {
name: "tasks",
primaryKey: "id",
searchableAttributes: ["title", "description"],
filterableAttributes: [
"tenantId",
"status",
"priority",
"createdByUserId",
"assignedToUserId",
"assignedToGroupId",
"linkedEntityType",
"linkedEntityId",
"archived",
],
sortableAttributes: ["createdAt", "updatedAt", "deadline"],
rankingRules: ["words", "typo", "proximity", "attribute", "sort", "exactness"],
allowedDocumentFields: [
"id",
"tenantId",
"title",
"description",
"status",
"priority",
"createdByUserId",
"assignedToUserId",
"assignedToGroupId",
"linkedEntityType",
"linkedEntityId",
"archived",
"createdAt",
"updatedAt",
"deadline",
],
};