Steps to test 1. Run metadata migrations 2. Run sync-metadata on your workspace 3. Enable the following feature flags: IS_SEARCH_ENABLED IS_QUERY_RUNNER_TWENTY_ORM_ENABLED IS_WORKSPACE_MIGRATED_FOR_SEARCH 4. Type Cmd + K and search anything
11 lines
270 B
TypeScript
11 lines
270 B
TypeScript
import { IndexType } from 'src/engine/metadata-modules/index-metadata/index-metadata.entity';
|
|
|
|
export const getColumnsForIndex = (indexType?: IndexType) => {
|
|
switch (indexType) {
|
|
case IndexType.GIN:
|
|
return [];
|
|
default:
|
|
return ['deletedAt'];
|
|
}
|
|
};
|