Red Hat Bugzilla – Bug 968729
Search logic with AND returns OR results
Last modified: 2013-12-03 17:16:14 EST
Description of problem:
Search with AND internal logic returns results for OR internal logic.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Click 'Search'
2. Select a tag group, e.g. JBDS
3. Select 'Book' tag
4. Include 3 JBDS book tags in search, so have '+' symbol: Installation Guide, Migration guide, Getting Started Guide
5. Change internal logic to AND
6. Click 'search topics' button
Get *all* topics that are in any of the three books (OR logic)
Get topics that are *common* in all three books (AND logic)
The problem is that the new UI doesn't replicate the old UI. When setting the "catint" query parameter the category id and project should be set like so "catint6-24" for Category 6 (Book) and Project 24 (JBDS). If no project is set, as it currently does so, then it assumes that the Project is the Common Project grouping.
So we either fix this in the GUI or change the backend to not require the Project. The problem with the latter option is that the "and/or" searching wouldn't be specific to the Project grouping, and would be done on a global scope. I believe that was the reasoning when it was done in the old UI anyways.
Fixed in 1.3-SNAPSHOT build 201311081438
The query generation mechanism will now include the project id in the query url generated, as it used to in the old SEAM UI.
Note: This version is currently live on the development/test server.
Confirmed that the AND logic works as expected.