Reorganize repo structure and standards references
This commit is contained in:
1 parent
3cb93a81be
commit
be2054274d
5885 files changed
+2588
-195
No files matched your search
@@ -0,0 +1,16 @@
|
||||
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"],
|
||||
};
|
||||
Reference in new issue
Block a user