Add task number field for the fulltext elastic search (#2291)

Signed-off-by: Ruslan Bayandinov <wazsone@ya.ru>
This commit is contained in:
Ruslan Bayandinov 2022-10-10 17:32:12 +07:00 committed by GitHub
parent c730c15fb1
commit 24da818a21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -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.
```

View File

@ -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)

View File

@ -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)
)
}