diff --git a/sci-log-db/src/models/basesnippet.model.ts b/sci-log-db/src/models/basesnippet.model.ts index f97193d6..994a39b2 100644 --- a/sci-log-db/src/models/basesnippet.model.ts +++ b/sci-log-db/src/models/basesnippet.model.ts @@ -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[]; diff --git a/sci-log-db/src/models/logbook.model.ts b/sci-log-db/src/models/logbook.model.ts index 076dfb45..6d5c08df 100644 --- a/sci-log-db/src/models/logbook.model.ts +++ b/sci-log-db/src/models/logbook.model.ts @@ -21,6 +21,7 @@ export class Logbook extends Basesnippet { type: 'string', required: true, description: 'Name of logbook as presented to user in GUI', + index: true, }) name: string; @@ -28,6 +29,7 @@ export class Logbook extends Basesnippet { type: 'string', description: 'Optional detailed definition of contents and purpose of this logbook', + index: true, }) description?: string; diff --git a/sci-log-db/src/models/paragraph.model.ts b/sci-log-db/src/models/paragraph.model.ts index 8f190e91..f03bce70 100644 --- a/sci-log-db/src/models/paragraph.model.ts +++ b/sci-log-db/src/models/paragraph.model.ts @@ -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;