Skip to content

Commit

Permalink
Add index for common searched fields
Browse files Browse the repository at this point in the history
  • Loading branch information
minottic committed Mar 7, 2024
1 parent 096d09c commit 4cc5ce8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions sci-log-db/src/models/basesnippet.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export class Basesnippet extends Entity {

@property.array(String, {
description: 'arbitrray strings meant as tags attached to this snippet',
index: true,
})
tags?: string[];

Expand Down
2 changes: 2 additions & 0 deletions sci-log-db/src/models/logbook.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ export class Logbook extends Basesnippet {
type: 'string',
required: true,
description: 'Name of logbook as presented to user in GUI',
index: true,
})
name: string;

@property({
type: 'string',
description:
'Optional detailed definition of contents and purpose of this logbook',
index: true,
})
description?: string;

Expand Down
1 change: 1 addition & 0 deletions sci-log-db/src/models/paragraph.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export class Paragraph extends Basesnippet {
@property({
type: 'string',
description: 'Markup contents in markdown (MD) syntax of this paragraph',
index: true,
})
textcontent?: string;

Expand Down

0 comments on commit 4cc5ce8

Please sign in to comment.