Re: [OPEN-ILS-DEV] After upgrade to 3.0.2, OSRF query fails to limit items by org_unit
After a lot of debugging, I figured out how to get search working again in the Android app. This query works in 2.12 but not in 3.0.2: method = open-ils.search.biblio.multiclass.query param = {org_unit=7, default_class=title, offset=0, limit=200, depth=2} param = "harry Potter chamber of secrets" param = 1 This query works in both: method = open-ils.search.biblio.multiclass.query param = {offset=0, limit=200} param = "title:harry Potter chamber of secrets site(ARL-ATH)" param = 1 I got a clue after seeing this comment in Biblio.pm: > sub multiclass_query { ># arghash only really supports limit/offset anymore >my($self, $conn, $arghash, $query, $docache) = @_; The funny thing is, that comment existed in 2.12 as well, and the query worked there. I kind of used https://wiki.evergreen-ils.org/doku.php?id=documentation:technical:search_grammar as a guide though it's clearly not authoritative. For instance, site(7) should work according to the wiki but it doesn't, and site(ARL-ATH) does. Ken
[OPEN-ILS-DEV] After upgrade to 3.0.2, OSRF query fails to limit items by org_unit
After a recent upgrade to 3.0.2, the behavior of the query method open-ils.search.biblio.multiclass.query made by the Android app changed. It used to limit results to those matching the org_unit specified in the query; now it seems to return all copies. Running the same query against an older Evergreen 2.12.8 works as expected, returning only the ids of copies owned by the specified org_unit. Does the query need to change for newer Evergreen installs, or is this a server bug? Thanks in advance for any pointers. Sample OSRF call - method = open-ils.search.biblio.multiclass.query param = {org_unit=7, default_class=title, offset=0, limit=200, depth=2} param = "harry Potter chamber of secrets" param = 1 Full URL: https://gapines.org/osrf-gateway-v1?service=open-ils.search&method=open-ils.search.biblio.multiclass.query¶m=%7B%22org_unit%22:7,%22default_class%22:%22title%22,%22offset%22:0,%22limit%22:200,%22depth%22:2%7D¶m=%22harry%20Potter%20chamber%20of%20secrets%22¶m=1 Results: 96 items Expected results: 6 items -- -Ken