]> 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)
committerKathy Lussier <klussier@masslnc.org>
Wed, 18 Nov 2015 14:59:22 +0000 (09:59 -0500)
commitc7e2d9def2193a500b560c9bd5c98d213e3a4082
treec4b1488e891e6e476f06b102021016b0fd25bb2f
parent4b094b126ae2575a03377300fb66b3f5095544fb
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