Bug #6268

Advanced search Boolean query builder does not work

Added by Dan Gillean over 8 years ago. Updated almost 8 years ago.

Status:VerifiedStart date:01/28/2014
Priority:HighDue date:
Assignee:Dan Gillean% Done:

100%

Category:Search / Browse
Target version:Release 2.1.0
Google Code Legacy ID: Tested version:
Sponsored:No Requires documentation:

Description

To reproduce
Compare searching for "good OR bad" and variations thereof in the global search with using the Advanced search query building interface.

Resulting error
Search results are not consistent - it appears that only the first term is being searched in the Advanced search interface.
Compare the following searches conducted using the global search box vs Advanced search:


                | Search box | Advanced |
                |-----------------------|
       Good     |    316     |   316    | 
        Bad     |      7     |     7    |
   Good Bad     |    320     |   320    | 
   Bad Good     |    320     |   320    |
Good OR Bad     |    320     |   316    |  
Bad OR Good     |    320     |     7    | 
                +-----------------------+

Note especially the last 2 cases, which produce the same results as searching for a single term. This suggests that when a query is built using the advanced search interface (rather than entering a Boolean operator directly into the search box), the search is returning results only for a single term.

Originally reported by a user: https://groups.google.com/d/msgid/ica-atom-users/1f2f17ef-a803-46b7-b781-7decddeac6c8%40googlegroups.com

Expected result

Search results are consistent throughout application. Query building interface works.

History

#1 Updated by José Raddaoui Marín over 8 years ago

  • Status changed from New to QA/Review
  • Assignee changed from Jesús García Crespo to Dan Gillean
  • % Done changed from 0 to 100

AtoM|commit: 90750e15a838685626fe7d460045fc5250b6cf15

This is now fixed using the default operator precendence.

#2 Updated by Jessica Bushey over 8 years ago

Tested and it is working.
Here are my results:


Apprentice - 13/13
Cat        - 19/19
Cat AND Apprentice - 1/1
Apprentice AND Cat - 1/1
Cat OR Apprentice  - 31/31
Apprentice OR Cat  - 31/31

#3 Updated by Jessica Bushey over 8 years ago

  • Status changed from QA/Review to Verified

#4 Updated by Dan Gillean almost 8 years ago

  • Target version changed from Release 2.0.2 to Release 2.1.0

Also available in: Atom PDF