-
-
Notifications
You must be signed in to change notification settings - Fork 746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pref: search index #1241
pref: search index #1241
Conversation
Deployment Status: ✅ Success |
2edbf9f
to
628cb4a
Compare
Deployment Status: ✅ Success |
Deployment Status: ✅ Success |
0f4ef4c
to
757d362
Compare
Deployment Status: ✅ Success |
Deployment Status: ✅ Success |
excSqls.push(this.getCreateGinIndexSql(dbFieldName)); | ||
}); | ||
console.log('ppppppp', excSqls); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
@@ -182,7 +199,7 @@ export class VectorTransform { | |||
to_char((elem::timestamp AT TIME ZONE ?), 'YYYY-MM-DD HH24:MI:SS'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should use the formatter in the field to perform the conversion.
return knex | ||
.raw( | ||
`?? = to_tsvector('simple', | ||
COALESCE( | ||
( | ||
SELECT string_agg(elem::text, ' ') | ||
FROM jsonb_array_elements_text(??::jsonb) as elem | ||
FROM jsonb_array_elements_text(${prefix}??::jsonb) as elem |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all ::jsonb is not nessesary
Deployment Status: ✅ Success |
Deployment Status: ✅ Success |
2 similar comments
Deployment Status: ✅ Success |
Deployment Status: ✅ Success |
4451753
to
61f41d9
Compare
Deployment Status: ✅ Success |
Deployment Status: ✅ Success |
No description provided.