Bug 879067

Summary: Search for project names giving unexpected results
Product: [Retired] Zanata Reporter: Hedda Peters <hpeters>
Component: Component-UIAssignee: zanata-dev-internal <zanata-dev-internal>
Status: CLOSED NOTABUG QA Contact: Ding-Yi Chen <dchen>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0CC: damason, mkim, zanata-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-22 04:52:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 1 Michelle Kim 2012-11-22 01:09:42 UTC
I believe it is a bug for project search feature. Can anyone in the dev team take a look at this? thank you.

Comment 2 David Mason 2012-11-22 04:11:29 UTC
This happens because the project search is using a word-based search without wildcards, so basically if the string does not match the entire word it will not show up as a result.

For example if there is a project with "cloudforms" in the description, at the moment a search of "cloud" or "forms" will not match (unless those words appear in addition to "cloudforms").

The fixes for this would be either adding wildcards to the search, or changing to an n-gram approach that would match substrings regardless of words.

Comment 3 Hedda Peters 2012-11-22 04:25:39 UTC
That would make sense if it didn't show me any results when searching for "cloud". Why does it give me 1 result named "Cloudforms" though?

Comment 4 David Mason 2012-11-22 04:48:24 UTC
Note that the word "cloud" is present in the name, slug or description for each of the results for a search of "cloud". The fact that "Cloudforms" is also present is just a coincidence in this case.

Note that for the purpose of this search, words can be separated by whitespace or by things like hyphens or underscores.

Comment 5 Hedda Peters 2012-11-22 04:52:32 UTC
Aaaaaah..... the 1 result is "Cloudforms CLOUD Engine User Guide". Of course it's being found searching for "cloud" - I was too focused on "cloudforms" to see the second, separte occurance of "cloud" in the name. (oops)

Closing, sorry!