Repository navigation
fulltext-search backend - Add Fulltext Search API && Fulltext Indexes && Unit tests for /search API - #1879
Merged
Conversation
2. Added fulltext indexes to support fulltest search 3. Added unit tests for /search API
…words with spaces
shengquan-ni
requested changes
Apr 12, 2023
fjch1997
added a commit
that referenced
this pull request
Apr 20, 2023
1. Updated `saved-workflow-section` component to make use of the `/search` endpoint added by #1879 2. Added a mock `WorkflowPersistService` for unit tests. Previously, no API call to the server was made and it is therefore not mocked. 3. Added a FileSaverService to intercept calls to `file-saver`. I was not able mock this using jest. Details are [here](https://stackoverflow.com/questions/59281306/angular-7-mocking-filesaver-saveas-in-unittest) 4. Note that all workflows for a user or project is loaded fully in the beginning. Then, for each search query, the server returns the full details of a list of workflows. Only the ID is used to filter the workflows to display. The server doesn't simply return the list of IDs in anticipation of adding pagination. In a future PR, only the top 20 results will be loaded and when the user searches by keywords, we will fully utilize the returned workflow object for display.
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
…s && Unit tests for /search API (apache#1879) - This PR adds a fulltext search API that supports a variety of search types, including single keyword search, single keyword search across multiple tables, multiple keywords, text phrases, and substring search. - Fulltext indexes have been added to support this new functionality. - Unit tests have also been included for the /search API to ensure proper functionality. --------- Co-authored-by: Jingchao Feng <[email protected]> Co-authored-by: Jingchao Feng <[email protected]>
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
1. Updated `saved-workflow-section` component to make use of the `/search` endpoint added by apache#1879 2. Added a mock `WorkflowPersistService` for unit tests. Previously, no API call to the server was made and it is therefore not mocked. 3. Added a FileSaverService to intercept calls to `file-saver`. I was not able mock this using jest. Details are [here](https://stackoverflow.com/questions/59281306/angular-7-mocking-filesaver-saveas-in-unittest) 4. Note that all workflows for a user or project is loaded fully in the beginning. Then, for each search query, the server returns the full details of a list of workflows. Only the ID is used to filter the workflows to display. The server doesn't simply return the list of IDs in anticipation of adding pagination. In a future PR, only the top 20 results will be loaded and when the user searches by keywords, we will fully utilize the returned workflow object for display.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.