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: This issue is different from the other issue. The other issue is about "if I typed 'cake', I want it to match for 'cheesecake' in record". However, my issue is that "if I typed 'cheesecake', I want it to match for 'cake' in the record". Given this team is adopting stream-word-matching, this enhancement could actually be easier than the other issue, and it will also make "find" much easier and convenient to use.
While sometimes people may type "egg" and want to search "eggs", it is also possible the other way round, they want to search those containing "orange" but typed "oranges". The software cannot match this kind of search as well. This can be a feature flaw.