Skip to content

Exact Search issues #433

@Mafuyu0

Description

@Mafuyu0

Type of installation

Portable (.zip)

Version

Beta

Type of reader (if reader related)

None

Steps to reproduce

On the Usage page it states:

For exact search, add " or ` in front of search. (e.g. For One Piece type `one).

However, it seems the exact search is not necessarily an exact search, but rather a "startsWith" search:

if (['"', "`", "'"].includes(val[0])) {
filter = "^" + val.replaceAll(/('|"|`)/g, "");

This makes it really hard (or impossible) to do exact searches. For example, in my library I simply have a folder full of .zip files for each work. My file naming generally starts with some kind of artist name/tag/writer at the start followed by the title name and/or chapter. This means if I want to search for an exact title, I have to start with a prefix.

In general I think the search/location filter bar could be improved - this doesn't just apply to the beta. It is very difficult to do exact or partial searches.

You don't need to type the whole word in search. (e.g. For One Piece type op).

Since my library is pretty large this usually ends up with tons of false positives - I wish there was a way to turn this off by default

✔️ Expected Behavior

By searching "One Piece I would expect the following files to match the search:

[Eiichiro Oda] One Piece - Volume 1
[Eiichiro Oda] One Piece - Volume 2

❌ Actual Behavior

When searching "One Piece, I get no results for the above files

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions