mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-26 04:23:58 +03:00
Add task number field for the fulltext elastic search (#2291)
Signed-off-by: Ruslan Bayandinov <wazsone@ya.ru>
This commit is contained in:
parent
c730c15fb1
commit
24da818a21
@ -33,7 +33,7 @@ rush docker:build # Will build docker containers for all applications.
|
|||||||
cd ./dev/
|
cd ./dev/
|
||||||
docker-compose up -d --force-recreate # Will setup all containers
|
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.
|
./deploy/setup-es-attachment-pipeline.sh # Setup elastic search plugin configuration.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -203,6 +203,7 @@ export class TIssue extends TAttachedDoc implements Issue {
|
|||||||
priority!: IssuePriority
|
priority!: IssuePriority
|
||||||
|
|
||||||
@Prop(TypeNumber(), tracker.string.Number)
|
@Prop(TypeNumber(), tracker.string.Number)
|
||||||
|
@Index(IndexKind.FullText)
|
||||||
number!: number
|
number!: number
|
||||||
|
|
||||||
@Prop(TypeRef(contact.class.Employee), tracker.string.Assignee)
|
@Prop(TypeRef(contact.class.Employee), tracker.string.Assignee)
|
||||||
|
@ -324,7 +324,9 @@ export class FullTextIndex implements WithFind {
|
|||||||
function isFullTextAttribute (attr: AnyAttribute): boolean {
|
function isFullTextAttribute (attr: AnyAttribute): boolean {
|
||||||
return (
|
return (
|
||||||
attr.index === IndexKind.FullText &&
|
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)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user