Description of problem: Errata search by "advisory" returns a lot of results, this is because all search data share a common pattern of "RHxA". Therefore when we search for a specific advisory "RHBA-2007:0113" we get that result on top with a score of 1.0, then after 10 matches scores drop and results 11 - 500 are between .40 and .10. Wes suggested limiting the results further. Implementation will create a configuration variable in rhn-search.conf for "errata.advisory_search.threshold" We'll default this to .30. A user can customize this if they want different behavior. Version-Release number of selected component (if applicable): How reproducible: Always Sync rhel5 content from webqa/hosted Steps to Reproduce: 1. Search on advisory "RHBA-2007:0113" Actual results: See 501 results Expected results: Closer to around 40-60 results. This will change based on the exact search, but .30 will probably limit it to somewhere around 40-60 results. Additional info:
Correction, below is what the configuration variable is in rhn-search.conf search.errata.advisory_score_threshold=.30
These are the 2 config params added along with their current defaults. search.errata_score_threshold=.20 search.errata.advisory_score_threshold=.30 search.errata_score_threshold is for all errata searches, except "advisory". search.errata.advisory_score_threshold is for errata advisory matches. You can refer to the log file for rhn-search, /var/log/rhn/search/rhn_search_daemon.log and look at the scores for the results to see when the score limit is hit and results are dropped.
Here is the vader commit: http://git.fedorahosted.org/git/?p=spacewalk.git;a=commit;h=7ca81266724fe21216db2fdbef476cbd88426768
verified 5/20
Verified on staged (Satellite-5.3.0-RHEL5-re20090724.0) with updates from Aug 20, 2009 # vi /etc/rhn/search/rhn_search.conf Set search.errata.advisory_score_threshold=.20 #/etc/init.d/rhn-search restart Errata > Advanced Search > Search For: RHBA-2007:0113 What to search: Erratum Advisory returned 495 results What to search: All Fields returned 3 results # vi /etc/rhn/search/rhn_search.conf Set search.errata.advisory_score_threshold=.30 # /etc/init.d/rhn-search restart Errata > Advanced Search > Search For: RHBA-2007:0113 What to search: Erratum Advisory returned 331 results What to search: All Fields returned 3 results # vi /etc/rhn/search/rhn_search.conf Set search.errata.advisory_score_threshold=.40 # /etc/init.d/rhn-search restart Errata > Advanced Search > Search For: RHBA-2007:0113 What to search: Erratum Advisory returned 45 results What to search: All Fields returned 3 results The search results for an Erratum Advisory can be fine tuned with the search.errata.advisory_score_threshold without affecting the search results using All Fields. moving to RELEASE_PENDING
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