[Enhancement] Include Genre in global library search #1956

Closed
opened 2026-04-25 00:01:44 +02:00 by adam · 5 comments
Owner

Originally created by @Gru0810 on GitHub (May 6, 2024).

What happened?

When I search for "Klassiker" which is used in "TAGS" (Schlagwörter) all is fine:
image

But when I search for "AbenteuerRoman" which is used in "Genre" the system does not find the entry:
image

Under "Libray" the direct-filter on "AbenteuerRoman" works perfect:
image

What did you expect to happen?

search will also find libray-item with Search-Text in Genre like it works for TAGS

Steps to reproduce the issue

Audiobookshelf version

2.8.1

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

Chrome

Logs

No response

Additional Notes

No response

Originally created by @Gru0810 on GitHub (May 6, 2024). ### What happened? When I search for "Klassiker" which is used in "TAGS" (Schlagwörter) all is fine: ![image](https://github.com/advplyr/audiobookshelf/assets/72630160/a5d8f220-590c-422e-8d73-da85f4cb4ffe) But when I search for "AbenteuerRoman" which is used in "Genre" the system does not find the entry: ![image](https://github.com/advplyr/audiobookshelf/assets/72630160/0ea50c0f-3c81-4fb0-a9e3-a1337852cf02) Under "Libray" the direct-filter on "AbenteuerRoman" works perfect: ![image](https://github.com/advplyr/audiobookshelf/assets/72630160/33c104d1-35dc-4cdf-8f4c-b2c53d3103cf) ### What did you expect to happen? search will also find libray-item with Search-Text in Genre like it works for TAGS ### Steps to reproduce the issue 1. ### Audiobookshelf version 2.8.1 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? Chrome ### Logs _No response_ ### Additional Notes _No response_
adam added the enhancementsorting/filtering/searching labels 2026-04-25 00:01:44 +02:00
adam closed this issue 2026-04-25 00:01:44 +02:00
Author
Owner

@advplyr commented on GitHub (May 6, 2024):

I don't understand, can you explain step-by-step how to reproduce this?

@advplyr commented on GitHub (May 6, 2024): I don't understand, can you explain step-by-step how to reproduce this?
Author
Owner

@nichwall commented on GitHub (May 6, 2024):

Looks like information from https://github.com/advplyr/audiobookshelf/issues/2936 got copied into this issue.

@nichwall commented on GitHub (May 6, 2024): Looks like information from https://github.com/advplyr/audiobookshelf/issues/2936 got copied into this issue.
Author
Owner

@Gru0810 commented on GitHub (May 8, 2024):

sorry, did not check by preview
I just add a new Genre / Kategory "test1234" to the audiobook and tehn search for it but 'no result':
image

@Gru0810 commented on GitHub (May 8, 2024): sorry, did not check by preview I just add a new Genre / Kategory "test1234" to the audiobook and tehn search for it but 'no result': ![image](https://github.com/advplyr/audiobookshelf/assets/72630160/9f3fb2d4-9b96-47e4-8b14-3725b7d44923)
Author
Owner

@Gru0810 commented on GitHub (May 8, 2024):

I justtry to understand the Code for search at :
https://github.com/advplyr/audiobookshelf/blob/master/server/utils/queries/libraryItemsBookFilters.js#L1157
and try to compare the block for searing within "tags" with "genres" and found this:
image

@Gru0810 commented on GitHub (May 8, 2024): I justtry to understand the Code for search at : https://github.com/advplyr/audiobookshelf/blob/master/server/utils/queries/libraryItemsBookFilters.js#L1157 and try to compare the block for searing within "tags" with "genres" and found this: ![image](https://github.com/advplyr/audiobookshelf/assets/72630160/b7013b6e-709c-4958-8666-718d74c21d99)
Author
Owner

@advplyr commented on GitHub (May 8, 2024):

I understand now. Genres are not part of the global search so I made this a feature request instead of a bug.

That screenshot is not related to searching.

@advplyr commented on GitHub (May 8, 2024): I understand now. Genres are not part of the global search so I made this a feature request instead of a bug. That screenshot is not related to searching.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#1956