Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 461170

Summary: Search Server: nonsensical things return results
Product: [Community] Spacewalk Reporter: Justin Sherrill <jsherril>
Component: WebUIAssignee: John Matthews <jmatthew>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 0.2CC: cperry, jesusr
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-22 16:29:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 456552    

Description Justin Sherrill 2008-09-04 17:30:53 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. type something like   "837248723847893" or "jksdflsdjflwoinlv" into the search box
2. hit search
3. 
  
Actual results:
get results

Expected results:
shouldn't get results

Additional info:
maybe the score on the search results needs to be filtered more.

Comment 1 John Matthews 2008-12-10 18:44:42 UTC
The issue is that we had logic in the search server to return the 10 best hits.  For the case of a system search with say "jksdflsdjflwoinlv" in the system name.  The search string would be broken up into a series of NGrams (permutations of all the letters) and that would be searched and ranked.  We'd get back scores that were very low and return the highest scoring 10.    

Now I've add in a check that if the score is below a configurable threshold value we will not return the results.  This check is only for system search, for other searches we still return the first 10 matches at a minimum.

search.system_score_threshold=.10

This change was introduced in spacewalk 0.3.

Comment 2 Jesus M. Rodriguez 2009-01-15 04:10:55 UTC
searching for 837248723847893 or jksdflsdjflwoinlv, resulted in no systems found.