Hentoid icon indicating copy to clipboard operation
Hentoid copied to clipboard

[Request] Allow for multiple search terms in basic text search

Open anonymousUsers1 opened this issue 5 years ago • 2 comments

I've run into an issue where identical tags slightly differ from website to website. Some of them append the number of entries with the given tag to the end of the tag itself resulting in two tags in the following manner: Most websites: Vanilla Certain sites: Vanilla9K

The basic search is a pretty good solution for this as it allows for partial matches, unfortunately however it doesn't allow for the chaining together of different tags. It would become far more powerful a tool if it were possible to comma separate or different search terms in the basic search and have it only return items which meet all the search term requirements.

E.g. Term 1: English Term 2: Vanilla

Search term 1: English Response: 200 comics

Search term 2: Vanilla Response: 500 comics

Search term 3: English,Vanilla Response: 123 comics

How this would work: 1. Split the search term at Commas into a new array 2. Run a search per normal but using only the first item in the split array and save the responses to a list/array 3. Run the search again with the second item in the split array and save the responses to a new list/array 4. Compare the lists/array and only return items that show up on all lists

anonymousUsers1 avatar Jul 11 '20 10:07 anonymousUsers1

Thanks for the feedback.

First things first, tags ending with "xK" (e.g. vanilla9K) are due to an nhentai bug that has been fixed for a couple weeks. You can clean these tags by re-downloading said books.

As for your suggestion, advanced search has been made for that. We'll see if we can implement what you describe in the basic search (which has, as you may guess, a way more basic way of working...)

RobbWatershed avatar Jul 11 '20 10:07 RobbWatershed

Solution : Make simple search actually support the syntax displayed in search history

RobbWatershed avatar Oct 10 '22 14:10 RobbWatershed