Description of problem: While searching for "libvirt" in the fjs-0-14.rhndev.redhat.com we are currently using for KS testing, I have noticed it founds packages which it should not find and libvirt is listed 3 times Version-Release number of selected component (if applicable): Red Hat Network release 5.2.0 rhn-search-5.2.0-4.el4 How reproducible: always Steps to Reproduce: 1. search for package "libvirt" Actual results: * "libvirt" is found 3 times * when I select "What to search: Name only", search returns packages which do not have "libvirt" in their names as well * when I select "What to search: Name only", search highlights "libvirt" in summary as well Expected results: Should work as expected
Created attachment 329700 [details] rhn_search.log (last 1000 rows)
Created attachment 329701 [details] rhn_search_daemon.log
Created attachment 332895 [details] actual results The behavior seen in the attached graphic is actually the correct behavior intended for this feature. We do *NOT* do exact matches anymore like we did with database searches. When searching libvirt it actually searches for libvirt and virt, and probably other combinations. We sort by the score which is why you have libvirt at the top. We also remove the very low scoring results from the list. The reason you see 3 libvirts are because the summaries are different so we show all there that were found.
The only thing I see addressing in this bug is that when NAME_ONLY is passed in we highlight only the package name values, anything else highlight BOTH columns: name and summary. Highlighting is not perfect and only meant to help the user, but more complex searches will result in nothing being highlighted, that is to be expected.
changed title from 'incorrect search results' to 'incorrect search highlighting'
fixed in 8cd273cd4a458c6eaa6544e102bd741ee2640f03
verified Satellite-5.3.0-RHEL5-re20090306.2-i386-embedded-oracle.iso * Package search for libvirt with name only * only libvirt in the the name only field is highlighted
Stage validated. Only (parts of) package names are highlighted when doing "Nor Name" Suche. However, I find this behaviour strongly contraintuitive -- if I search Name Only for libvirt, I do not want to see perl-Sys-Virt. Moving to RELEASE_PENDING but also adding to triage for further fix.
Removing the sat600-triage. I have filed new bug 520752 for the "searches are too fuzzy" problem.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2009-1434.html