-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search seems broken? #2645
Comments
From looking at your screenshots, I guess 1/2 to 3/4 of the results are explainable (e.g. most pizza results have the word pizza in the title). Others I find suspicious but I cannot tell exactly. The search will look at various fields of the recipe and not all are directly visible in the overview. Could you please take one recipe that you think is not matching to a search term and open it. Then check if you find the search term anywhere on the screen (you might be able to use browser search but not sure about this). If you cannot find it, you might go to the recipe's folder in the files app. There is a JSON file. Could you share that with me *rename it to Chris |
Well, the most obvious one seems to be the Elizabeth Sponge cake one when search for pizza. Here is the json for it.
|
I find none of the results suspicious when looking only at the recipe names (iirc, the filtering only matches the name atm.). It's performing a fuzzy search and although "Elizabeth sponge cake" might be the farthest away on the first glance (depending on your measure of distance) there is I'm not saying it's perfect and the fuzzy search can be tuned but I found that it's not that easy to find a perfect balance between accepting typos when searching and showing too many unintended results. And there are certainly different opinions on what is "perfect" anyway ;) |
Hmmm seems a stretch. but ok. What about 'corner' and Rustic Country Loaf? This is its json.
|
I'm not saying it's perfect, but it's hard to get right. The loaf recipe is indeed quite far away from "corner". |
Posting to second this. Search regularly returns items that have nothing obvious to do with the recipe's name, description, ingredients, or steps. The UI uses the term "filter" for the name search and I feel most people expect that to mean we are looking at the recipe's name as the field for our filter. There's no indication in the UI that this is a "fuzzy" search of some kind that might look at other parts of the recipe or try to make assumptions about what we are looking for, and I've been struggling wondering if something was broken in my install. In a large recipe collection this often make the search results useless with just screen-fulls of results that aren't relevant to my term. OTOH Nextcloud's unified search seems to do an OK job with recipe name searches, albeit a bit slow and without the neat filtering that Recipes has (Which I do like a lot). |
Description
When searching via the search options, the results are rather erratic. Recipes appear which have nothing to do with the search term.
Reproduction
I have nearly 400 recipes added now, and the problem seems to get progressively worse.
Expected behavior
Search terms should be more accurate and not add spurious recipes.
Screenshots
Here are some examples.
Browser
Firefox 134.02
Versions
Nextcloud server version: Hub 9 (30.0.5)
Cookbook version: 0.11.2
Database system: PostgreSQL
The text was updated successfully, but these errors were encountered: