Open heeeyi opened 1 year ago
No details provided by team.
[The team marked this bug as a duplicate of the following bug]
Find feature only able to search entire words
Description
When adding recipes, some recipe names include the type of food that is being created in the name i.e.
cheesecake
is acake
When using
find
oncake
, a user would expect to seecheesecake
as one of thefind
results, however,find
is only able to find the entry if the entry ischeese cake
, wherecake
is a word on its own.Steps for reproducing
clear
add t/cheesecake i/flour, 4, teaspoon, 0.02 s/mix the flour d/cheesecake
add t/sponge cake i/flour, 4, cups, 0.3 s/mix flour into batter d/spongey
find r/cake
Expected Output
Cheesecake and sponge cake entry
Actual Output
[original: nus-cs2103-AY2223S2/pe-interim#674] [original labels: severity.Low type.FeatureFlaw]
[This is the team's response to the above 'original' bug]
Mentioned in Planned Enhancements 6
Items for the Tester to Verify
:question: Issue duplicate status
Team chose to mark this issue as a duplicate of another issue (as explained in the Team's response above)
Reason for disagreement: [replace this with your explanation]
Indeed the DG already specifies that the find command only search for exact matches, like "find i/egg" cannot search the recipe containing "eggs". However, I feel this would to quite a large degree affect the usage of the app itself, because it is quite common for people use "egg" and "eggs" interchangeably. So I feel this should still count as bug.