mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 14:35:52 +03:00
[GH-ISSUE #173] Search function clarification #127
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#127
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 @ekianjo on GitHub (Sep 25, 2019).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/173
Hi, I would like to know what is actually searched when searching in shiori?
Does it crawl titles only? or titles + tags ? or titles + tags + excerpts ? or titles + tags + excepts + cached content?
@RadhiFadlillah commented on GitHub (Sep 25, 2019):
Shiori will search the keyword in URL, title, excerpts and cached content, as can be seen here :
github.com/go-shiori/shiori@89aad30a17/internal/database/sqlite.go (L238-L250)If you include or exclude a tag, then it will lookup on the tags as well.
@ekianjo commented on GitHub (Sep 25, 2019):
sorry it's not clear for me, how do you include or exclude a tag when doing the search?
@RadhiFadlillah commented on GitHub (Sep 25, 2019):
In command line interface, from
printcommand you can use-tflag to include tags and-eflag to exclude tags. In web interface, in search bar usetag:tagnameto include tags and-tag:tagnameto exclude tags.In web interface you can also use tags dialog. To include tags just click on the tag name you want to include, and to exclude use Alt + Click on the tag name that you want to exclude.
@8bitgentleman commented on GitHub (Sep 25, 2019):
2 questions
@RadhiFadlillah commented on GitHub (Sep 26, 2019):
@8bitgentleman
Yeah, there is. First you need to login via
POST /api/login. It accepts JSON object like this :It will returns the session ID and logged in account data like this :
Now we can use endpoint
GET /api/bookmarks. It accepts several URL queries:To access the endpoint, attach the session ID as
X-Session-IDheader and send the request. For example, you want to get bookmarks in page 1 :To get bookmarks which contain keyword "interview" :
To get bookmarks which use tag "america" and "scary" :
The output will be array of bookmarks like this :
Nope, no documentation yet. The wiki still need lot of works.
@8bitgentleman commented on GitHub (Sep 26, 2019):
Wow this is great, thanks for the quick reply!
@ekianjo commented on GitHub (Sep 26, 2019):
@RadhiFadlillah for the wiki why don't you create issues as to what needs to be better documented, and then the community can help so you don't have to do everything by yourself?
@matclab commented on GitHub (Sep 30, 2019):
I've added some documentation to the Usage page…
It may be enough to close this issue.
@RadhiFadlillah commented on GitHub (Oct 3, 2019):
@ekianjo sure I will create new issue for that later.
@matclab thanks, closing this issue now.