[Koha-bugs] [Bug 24902] New: Elasticsearch - different limits are joined with OR instead of AND

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 19 10:56:26 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24902

            Bug ID: 24902
           Summary: Elasticsearch - different limits are joined with OR
                    instead of AND
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: ASSIGNED
          Severity: normal
          Priority: P5 - low
         Component: Searching - Elasticsearch
          Assignee: julian.maurice at biblibre.com
          Reporter: julian.maurice at biblibre.com

In the advanced search form, you can enable several limits using syspref
AdvancedSearchTypes (namely itemtypes, shelving locations, collections).
When used, the resulting query parts end up being joined with OR, even
if the field is different. That means that if you pick "Book" under
itemtypes tab, and "Fiction" under collection tab, it will search
"itype:BOOK OR ccode:FIC". It should be AND.

For instance, if you select:
    Itemtypes:
        ✓ Book
        ✓ DVD
    Location:
        ✓ Child
        ✓ Adult

instead of:
    itype:Book OR itype:DVD OR location:Child OR location:Adult
it should search:
    itype:(Book OR DVD) AND location:(Child OR Adult)

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


More information about the Koha-bugs mailing list