Bug 832134

Summary: Search query using "+" operator with system's description doesn't show the expected result
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: WebUIAssignee: Justin Sherrill <jsherril>
Status: CLOSED UPSTREAM QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.1CC: mmccune, omaciel
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-19 18:13:34 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:
Attachments:
Description Flags
description:(+rhel6+node) doesn't show anything in search result
none
description:rhel6* showing correct result from search widget
none
description:(+hidden+user) correctly showing search result none

Description Sachin Ghai 2012-06-14 15:39:47 UTC
Created attachment 591854 [details]
description:(+rhel6+node) doesn't show anything in search result

Description of problem:
Register two systems with name and description as below:
1 name:dhcp201-221.englab.pnq.redhat.com, description: rhel6 node registered
2.name:dhcp201-220.englab.pnq.redhat.com, description: rhel5 node registered

When I submit search query "description: (+rhel6+node); the result should include dhcp201-221.englab.pnq.redhat.com. but it doesn't show anything in result.

The same thing is working with roles. Search the roles by description and by using multiple description words:
Setup: Create two roles with following name and description

1. name:test description: role to test hidden user
2. name:Manager description: not a hidden user

Example: description: (+hidden+user); This gives both roles in result, which is expected. 



Version-Release number of selected component (if applicable):
1.0.z release puddle
katello-cli-common-0.1.108-1.el6_3.noarch
katello-glue-candlepin-0.1.313-1.el6_3.noarch
katello-0.1.313-1.el6_3.noarch
candlepin-0.6.5-1.el6_2.noarch
pulp-1.0.4-1.el6.noarch
katello-cli-0.1.108-1.el6_3.noarch


How reproducible:
always

Steps to Reproduce:
1. Create two systems as mentioned in defect description
2. search them with search query: description:(+rhel6+node)
3.
  
Actual results:
search query: description:(+rhel6+node) doesn't show anything in search result

Expected results:
search query should show the name of system whose description contains 'rhel6' and 'node' words.

Additional info:

Search using following description for first system is giving expected outcome.

 description:"rhel6 node registered"
 description:rhel6* 

Result: dhcp201-221.englab.pnq.redhat.com

Comment 1 Sachin Ghai 2012-06-14 15:41:01 UTC
Created attachment 591855 [details]
description:rhel6* showing correct result from search widget

Comment 2 Sachin Ghai 2012-06-14 15:47:43 UTC
Created attachment 591858 [details]
description:(+hidden+user) correctly showing search result

Comment 3 Justin Sherrill 2013-01-22 19:46:25 UTC
If upgrading you will need to rake reindex to see any changes.

https://github.com/Katello/katello/pull/1435

cd6c363e7f3361037b2617ee303a86d2dff7c86b

Comment 4 Mike McCune 2013-08-16 17:53:54 UTC
getting rid of 6.0.0 version since that doesn't exist

Comment 5 Mike McCune 2013-09-19 18:13:34 UTC
These bugs have been resolved in upstream projects for a period of months so I'm mass-closing them as CLOSED:UPSTREAM.  If this is a mistake feel free to re-open.