diff --git a/README.md b/README.md index af5baee672..c0f7027f35 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ rush docker:build # Will build docker containers for all applications. cd ./dev/ docker-compose up -d --force-recreate # Will setup all containers -# we a few seconds delay, to be sure elastic is up and running. +# wait a few seconds delay, to be sure elastic is up and running. ./deploy/setup-es-attachment-pipeline.sh # Setup elastic search plugin configuration. ``` diff --git a/models/tracker/src/index.ts b/models/tracker/src/index.ts index 1afb7571ea..6402b40bae 100644 --- a/models/tracker/src/index.ts +++ b/models/tracker/src/index.ts @@ -203,6 +203,7 @@ export class TIssue extends TAttachedDoc implements Issue { priority!: IssuePriority @Prop(TypeNumber(), tracker.string.Number) + @Index(IndexKind.FullText) number!: number @Prop(TypeRef(contact.class.Employee), tracker.string.Assignee) diff --git a/server/core/src/fulltext.ts b/server/core/src/fulltext.ts index 341ba6f322..f4e1b94557 100644 --- a/server/core/src/fulltext.ts +++ b/server/core/src/fulltext.ts @@ -324,7 +324,9 @@ export class FullTextIndex implements WithFind { function isFullTextAttribute (attr: AnyAttribute): boolean { return ( attr.index === IndexKind.FullText && - (attr.type._class === core.class.TypeString || attr.type._class === core.class.TypeMarkup) + (attr.type._class === core.class.TypeNumber || + attr.type._class === core.class.TypeString || + attr.type._class === core.class.TypeMarkup) ) }