Skip to content

fulltext-search backend - Add Fulltext Search API && Fulltext Indexes && Unit tests for /search API - #1879

Merged
shengquan-ni merged 17 commits into
masterfrom
fulltext-search-backend
Apr 15, 2023
Merged

shengquan-ni merged 17 commits into
masterfrom
fulltext-search-backend

Conversation

@cookymonsterKG

@cookymonsterKG cookymonsterKG commented Apr 12, 2023 •

Copy link
Copy Markdown
Contributor
  • 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.

@fjch1997
fjch1997 requested a review from shengquan-ni April 12, 2023 19:21

@shengquan-ni shengquan-ni left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  1. Add description to the PR.
  2. address the comment.

@shengquan-ni shengquan-ni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@shengquan-ni
shengquan-ni merged commit c2650e2 into master Apr 15, 2023
@shengquan-ni
shengquan-ni deleted the fulltext-search-backend branch April 15, 2023 23:11
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.
@Yicong-Huang Yicong-Huang added engine ddl-change Changes to the TexeraDB DDL java and removed java labels May 5, 2023
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ddl-change Changes to the TexeraDB DDL engine feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants