gotson / komga

Media server for comics/mangas/BDs/magazines/eBooks with API, OPDS and Kobo Sync support
https://komga.org
MIT License
3.89k stars 232 forks source link

[Feature Request] Search by tags in the search bar #597

Closed donotos closed 3 years ago

donotos commented 3 years ago

Is your feature request related to a problem? Please describe.

Add the possibility to search by tags in the Full Text Search

Describe the solution you'd like

the same pattern as the existing one for publisher. ex: tags:your_tag with the ability to use the AND, OR and NOT operators. ex: tags:your_tag AND tags:your_2nd_tag

Describe alternatives you've considered or other apps that can do what you want

anything that can be user to search on tags

gotson commented 3 years ago

The problem with this is that the search is done on all indexed fields, so searching by a tag like hero will also match all the titles matching hero.

There is also the issue of context, ie why the results are shown. Adding more and more index fields will result in broad searches, reducing the relevance of results because too many fields are matching.

donotos commented 3 years ago

there already is a "publisher" search where you restrict your search to a specific field using "publisher:". i think it should be done the same way for tags.

gotson commented 3 years ago

there already is a "publisher" search where you restrict your search to a specific field using "publisher:". i think it should be done the same way for tags.

But if you search for dc it will match all series published by DC comics.

gotson commented 3 years ago

I'm currently rewriting the whole full text search because of limitations (#592). It seems like we could set some fields as default fields (ie title, publisher, isbn), while others would have to be specified explicitly (tags for instance).

I need to test it out, see if that works.

donotos commented 3 years ago

looks good to me.

thampp commented 3 years ago

I was wondering about the ability to (full text) search for author information. I guess the approach discussed here could cover that as well: Among the list of tags that would have to be specified explicitly it would be great to also have writers, pencillers etc.

gotson commented 3 years ago

I was wondering about the ability to (full text) search for author information. I guess the approach discussed here could cover that as well: Among the list of tags that would have to be specified explicitly it would be great to also have writers, pencillers etc.

that's also something i want to test.

github-actions[bot] commented 3 years ago

:tada: This issue has been resolved in version 0.116.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: