Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import type { SearchIndexSchema } from "./types.js";
|
||||
|
||||
/**
|
||||
* Team-chat messages (AK-P15b). The in-chat search remains authoritative in
|
||||
* PostgreSQL because channel membership is finer grained than a tenant-wide
|
||||
* permission. This schema registers the safe, tenant-scoped projection for
|
||||
* read-all/admin search consumers without indexing mentions or attachments.
|
||||
*/
|
||||
export const chatMessagesIndex: SearchIndexSchema = {
|
||||
name: "chat-messages",
|
||||
primaryKey: "id",
|
||||
searchableAttributes: ["body"],
|
||||
filterableAttributes: ["tenantId", "chatId", "authorUserId", "parentMessageId", "deleted"],
|
||||
sortableAttributes: ["createdAt", "updatedAt"],
|
||||
rankingRules: ["words", "typo", "proximity", "attribute", "sort", "exactness"],
|
||||
allowedDocumentFields: ["id", "tenantId", "chatId", "authorUserId", "parentMessageId", "body", "deleted", "createdAt", "updatedAt"],
|
||||
};
|
||||
Reference in new issue
Block a user