Z39.50 server / SuperCat CQL parser ignores bools
Bug #1687649 reported by
Bill Erickson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Low
|
Unassigned | ||
2.11 |
Fix Released
|
Low
|
Unassigned |
Bug Description
Evergreen 2.12 / all versions
SuperCat CQL parser (effectively) ignores @or and @and boolean fields when compiling CQL queries for Z39.50 server searches.
To reproduce in yaz-client -- assuming Z39 on localhost with database name 'evergreen' and concerto data set:
Z> open localhost:
Connecting OK...
...
Z> find @or @attr 1=4 @attr 4=6 "potter" @attr 1=4 @attr 4=6 "piano"
...
Number of hits: 0, setno 1
This should compile down to => title:potter || title:piano
The "Number of hits" value should be 38 (with current concerto).
Patch en route.
Changed in evergreen: | |
status: | New → Confirmed |
importance: | Undecided → Low |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Thanks to Mike for pointing me in the right direction on this one!
Fix pushed:
http:// git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ berick/ lp1687649- z39-bools
To confirm the fix, the above steps should return a non-zero result for the number of hits. Also, the opensrf logs should contain a line like so:
SRU search string [(title = potter or title = piano)] converted to [title:potter || title:piano]