KedrianLoh / pe

0 stars 0 forks source link

Function outputs are ambiguous #2

Closed KedrianLoh closed 9 months ago

KedrianLoh commented 1 year ago

image.png

image.png

Similar events output is completely random. Unsure how those are, quote from UG "Top 3 categories with names that are most similar to the provided keyword, along with the categories they belong to".

Created 10 categories as shown in the screenshot and used command "search ccc" to identify bug.

soc-pe-bot commented 1 year ago

Team's Response

Similarity between input string and category name is computed by finding the length of the longest common substring.

"ccc" and "cc": longest common substring is "cc", with a length of 2. "ccc" and "electricity bill": longest common substring is "c", with a length of 1. "ccc" and "c": longest common substring is "c", with a length of 1.

When the similarity computed is the same, items are ranked by index.

Therefore the output order is not completely random and working as intended.

Items for the Tester to Verify

:question: Issue response

Team chose [response.Rejected]

Reason for disagreement: [replace this with your explanation]