[Koha-bugs] [Bug 11137] New: QueryParser can ignore parts of a Boolean search after the first

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 24 22:16:04 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11137

            Bug ID: 11137
           Summary: QueryParser can ignore parts of a Boolean search after
                    the first
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Searching
          Assignee: gmcharlt at gmail.com
          Reporter: gmcharlt at gmail.com
        QA Contact: testopia at bugs.koha-community.org

The way that the QueryParser configuration is initialized results in duplicate
search field aliases being defined, which in turn can cause problems with
Boolean searches.

For example, consider the following search:

kw:history && earth

This will retrieve all records that have both 'history' and 'earth' as
keywords.

Depending on your search settings, this search is received by Zebra as

@attrset Bib-1 @and @attr 4=6 @attr 5=1 @attr 1=1016 history @attr 4=6 @attr
5=1 @attr 1=1016 earth

Now consider this search, which should be identical:

kw:history && kw:earth

This search retrieves all records containing 'history', but ignores 'earth'. 
The search received by Zebra is:

@attrset Bib-1 @attr 4=6 @attr 5=1 @attr 1=1016 histor

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list