Skip to content

Folders: Find all matching albums, even if a query contains spaces #3441

Description

@aaronrudkin

1. What is not working as documented?

As per the issue title, some searches in the folder facet do not return correct results in an under-inclusive way. I am not precisely sure what the issue is, but generally very vague / single word searches return results, and exactly correct searches return results, but medium detail searches do not.

I have a folder entitled "2011 Joy of Cooking Calendar Photos" which is located at the path "Albums to Sort/2011 Joy of Cooking Calendar Photos" relative to the root.

Here are a series of search queries and whether or not the folder comes up:
"2011 joy of cooking calendar photos" 👍
"2011 joy of cooking calendar" 👍
"joy of cooking calendar" ❌
"joy of cooking" ❌
"cooking calendar" ❌
"joy" 👍
"calendar" 👍
"cooking" 👍
"of" 👍
"2011" 👍

I have a second folder entitled "2008 June Emily Concert" which is located at the path "Albums to Sort/2008 June Emily Concert"

2008 june emily 👍
2008 june 👍
2008 emily ❌
2008 concert ❌
june emily ❌
emily concert ❌
june concert ❌
concert 👍
emily 👍
june 👍
2008 👍

On your demo site, you have a folder called "German film awards 2012" and "film awards" will not find this as a result.

2. How can we reproduce it?

It is unclear to me if this bug emerges as a result of a more sophisticated edge case in terms of the search indexing, but I imagine given that it's folder searching, that this is easy to reproduce by simply creating a folder with that name and doing the search, and as I said it's reproducible on the demo site.

3. What behavior do you expect?

In general, if I am searching for a folder, and I enter search keywords that are contained in the folder name, the folder should be a result for the search query.

4. What could be the cause of your problem?

My guess is it's an issue with either how folder names are indexed or how the search scores results and discards insufficiently high quality results.

5. Can you provide us with example files for testing, error logs, or screenshots?

Attached screenshots, though as I said you can reproduce a version of this on your demo site.

proof no result
proof exists

6. Which software versions do you use?

ARM64 on Synology, MariaDB, not browser specific. Build 230514-0b780defb for my local install though it can be reproduced on your demo site.

This is a low urgency bug (since it can be worked around by simply making the search more precise or vague). I vacillated as to whether this was a bug (because these results are obviously unexpected and incorrect) or a feature request (because perhaps it is known that the folder facet doesn't have robust searching options and I'm asking for something to be built out) -- but I appreciate your time regardless and hope this report is useful.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

releasedAvailable in a stable release

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions