]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1516707: Phrase search ignores CD modifiers
authorMike Rylander <mrylander@gmail.com>
Tue, 17 Nov 2015 22:20:05 +0000 (17:20 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 18 Nov 2015 18:48:44 +0000 (13:48 -0500)
commit17fd0961e7ff9a0a8e9543a6f94d0be2058bfc36
tree5b76c68b8858a85188e58b37d8eeec491103939c
parent21733c3b0fbb618ea5ded5156312f10f57874980
LP#1516707: Phrase search ignores CD modifiers

Because phrases are subqueries, we need to look at the top of the parse tree
when looking for modifiers for cover density.  This is because modifers are
normally only allowed at the top of the parse tree (or in the floating sub-
query).  We do that by asking the plan's QueryParse for it's reference to its
parse_tree member, which is always the top of the parse tree in QP.

Included in this commit is a small change to the QP testing script to
facilitate testing of this fix.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/extras/fts-replacement.pl
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm