import type { SearchIndexSchema } from "./types.js"; /** * Entity (table-definition) search. Powers the entity picker in row * editors. The schema is small because entity definitions are low * cardinality and rarely change. */ export const entitiesIndex: SearchIndexSchema = { name: "entities", primaryKey: "id", searchableAttributes: ["name", "title", "titlePlural"], filterableAttributes: ["tenantId", "type"], sortableAttributes: ["name", "createdAt", "updatedAt"], rankingRules: ["words", "typo", "proximity", "attribute", "sort", "exactness"], allowedDocumentFields: ["id", "tenantId", "name", "title", "titlePlural", "type", "createdAt", "updatedAt"], };