Skip to content

Task/kbdev 1537 update fulltext queries#106

Draft
mathieulemieux wants to merge 5 commits into
developfrom
task/KBDEV-1537-update-fulltext-queries
Draft

Task/kbdev 1537 update fulltext queries#106
mathieulemieux wants to merge 5 commits into
developfrom
task/KBDEV-1537-update-fulltext-queries

Conversation

@mathieulemieux

@mathieulemieux mathieulemieux commented May 27, 2026

Copy link
Copy Markdown
Member

Right now, only Ontology have FULLTEXT indexes, and this PR is only adding a LUCENE index to that class.

But there is possibility to do CONTAINSTEXT queries (so leveraging FULLTEXT sql queries) on other class too (like variants), and this default to a 'per record scan' from what I'm understanding.

@mathieulemieux mathieulemieux self-assigned this May 27, 2026
@github-actions

This comment has been minimized.

@codecov-commenter

codecov-commenter commented May 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.14%. Comparing base (78aaaf9) to head (95daaa7).

Files with missing lines Patch % Lines
src/repo/query_builder/fixed.js 71.42% 2 Missing ⚠️
src/repo/model.js 80.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #106      +/-   ##
===========================================
- Coverage    86.26%   86.14%   -0.12%     
===========================================
  Files           46       46              
  Lines         3341     3350       +9     
  Branches       873      879       +6     
===========================================
+ Hits          2882     2886       +4     
- Misses         399      404       +5     
  Partials        60       60              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread src/repo/schema.js
@@ -131,6 +132,7 @@ const createSchema = async (db) => {
type: 'unique',
})));

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@elewis2 , here are some hardcoded indexes in the API, in addition to the ones provided per class by the schema.

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown

Unit Test Results

0 files  ±0  0 suites  ±0   0s ⏱️ ±0s
0 tests ±0  0 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 95daaa7. ± Comparison against base commit 78aaaf9.

@mathieulemieux

mathieulemieux commented May 28, 2026

Copy link
Copy Markdown
Member Author

@elewis2 , we may want to implement the index part in the schema directly now that we can see it's passing the tests. Otherwise, I need to add a functionality that checks, for an existing DB, that the index already or creates it.
Let's discuss it on next meeting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants