-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
feat: enhance search #7127
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
Merged
Merged
feat: enhance search #7127
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
dcb50f4
feat: hybrid search
alextran1502 5272b9c
fixing normal search
alextran1502 a1632ca
building out the query
alextran1502 0659670
okla
alextran1502 69feee7
Merge branch 'main' of github.com:immich-app/immich into feat/hybrid-…
alextran1502 564db3f
filters
alextran1502 eaaa4b3
date
alextran1502 7cbae96
order by date
alextran1502 66c8d8b
Remove hybrid search endpoint
alextran1502 6857486
remove search hybrid endpoint
alextran1502 0f2ca45
faces query
alextran1502 df867e6
search for person
alextran1502 237ba67
search and pagination
alextran1502 df7d35c
Merge branch 'main' of github.com:immich-app/immich into feat/hybrid-…
alextran1502 915cf5d
with exif
alextran1502 1d007ba
with exif
alextran1502 70f8dd6
justify gallery viewer
alextran1502 d18348c
memory view
alextran1502 10f0540
Fixed userId is null
alextran1502 70cb837
openapi and styling
alextran1502 b58de43
searchdto
alextran1502 606970f
lint and format
alextran1502 2e0aee3
remove term
alextran1502 f7adc7e
generate sql
alextran1502 8e14487
fix test
alextran1502 da98bdd
chips
alextran1502 25251a3
not showing true
alextran1502 f8b2d01
pr feedback
alextran1502 2e74ff6
pr feedback
alextran1502 ea761b6
nit name
alextran1502 9ad4d51
linting
alextran1502 195c0c5
pr feedback
alextran1502 5e9a670
styling
alextran1502 1f3ac7a
linting
alextran1502 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import type { MetadataSearchDto, SmartSearchDto } from '@immich/sdk'; | ||
import { persisted } from 'svelte-local-storage-store'; | ||
import { writable } from 'svelte/store'; | ||
|
||
export const savedSearchTerms = persisted<string[]>('search-terms', [], {}); | ||
export const isSearchEnabled = writable<boolean>(false); | ||
export const preventRaceConditionSearchBar = writable<boolean>(false); | ||
export const searchPayload = writable<SmartSearchDto | MetadataSearchDto | undefined>(undefined); |
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
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
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.
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.
It seems strange to have a full JSON as the value of
q
. Wouldn't it be better for each filter to be a different parameter?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.
This makes easier downstream to grab the whole string as JSON string and decode into javascript object
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.
You made the search endpoints POST, so what's the purpose of doing this instead of putting the JSON in the body?