mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 06:25:54 +03:00
[GH-ISSUE #899] Search API Fails to Return Results for Multi-Keyword Queries #408
Labels
No labels
component:backend
component:builds
component:builds
component:extension
component:frontend
component:readability
database
database:mysql
database:postgres
database:sqlite
feature:ebooks
github_actions
good first issue
hacktoberfest
note:duplicate?
note:fixed?
note:out-of-scope?
os:windows
priority:high
priority:low
pull-request
resolution:as-intended
resolution:cant-reproduce
resolution:duplicate
resolution:fixed
resolution:wontfix
tag:TBD
tag:big-task
tag:help-wanted
tag:huge-data
tag:meta
tag:more-info
tag:next
tag:no-stale
tag:requires-migrations
tag:research
tag:security 🛡️
tag:stale
tag:waiting-for-assignee
type:bug
type:documentation
type:enhancement
type:meta
type:ux
user:cli
user:web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shiori#408
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DesarrolloAntonio on GitHub (May 2, 2024).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/899
Data
Shiori version: 1.6.3
Describe the bug / actual behavior
When performing a search on the API with a single keyword, results are returned as expected. However, adding a second keyword results in an empty response list.
Expected behavior
I expect the search to return results that match both keywords.
To Reproduce
1 - I have a bookmark with this value, title":"Kotlin Design Patterns: Observer Explained | ProAndroidDev"
2 - With this endpoint (http://192.168.1.26:18080/api/bookmarks?page=1&keyword=kotlin) returns the correct elements
3 - With this endpoint (http://192.168.1.26:18080/api/bookmarks?page=1&keyword=kotlin%20Design) returns an empty list
@Monirzadeh commented on GitHub (May 2, 2024):
just for add more data after a quick test:
search can't return
Kotlin Debut return result for thisKotlin Design🤔@DesarrolloAntonio commented on GitHub (May 2, 2024):
With "kotlin Design" works
@Monirzadeh commented on GitHub (May 2, 2024):
we change the logic of search a little in #721. as i remember searching is case insensitive so it return the result. maybe this need improvement but first we should solve current issue.
@fmartingr you work on that part of code more than me. do you have any idea? somehow it just search for text that separate with space..
@fmartingr commented on GitHub (May 18, 2024):
As with a lot of other things, searching needs to be revisited at some point. I have been tempted to use bleve but that would make twice the storage for the same amount of bookmarks. Each database engine would need to have it's own
Searchmethod withSearchOptionspassed from the query. I will fill in a proper issue when I sit down and think about it, there's just too many things to work on 😓