-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement keyword search backend (#8539)
* add tha package * add migration * add columns from diff tables * change the model * configure engine * update user model * generate scout.php * modify scopeGeneralSearch * make searchable column as tsvector type * accept array of string as search term * add only necessary columns to index * improve the migration to be readable * fix linting * fix model so that UserSeeder would run * allow re-index of users after seeding so existing users are searchable * add missing attributes in user model * Modify the searching from OR clause to AND clause * ensure changes to experiences updates user model * sync the updates to notes column with the index on the user model * remove unnecessary composer files * address the feedback the migration * php linting fixes * fix user.php for php linting * update deps * add null verification * fix the test for the new change * fix linting * trim it * add translation * trigger searchable on deleting exp and user creation * update index on user deletion * remove leading slashes * add a test file for keyword search * change copy for the dropdown label and add translation to it * add tests for search after create,update,delete * add tests for search by each type of work experience * address feedback * fix linting * fix linting errors * fix the null value clean up * optimize updating notes * address feedback on migration * simplify searchable array for readability * improve tests as per the pr feedback * Revert "simplify searchable array for readability" This reverts commit 46b35f1. * optimize the query to get only ids for the first time * array refactor and fix empty array bug * move take to ID query * turn after_commit to true * add drop index * limit IDs being passed to in clause * fix extra database query when making searchable array --------- Co-authored-by: Peter Giles <[email protected]>
- Loading branch information
1 parent
408b3a0
commit b96b1cb
Showing
23 changed files
with
1,022 additions
and
44 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.